Skip to content

Commit

Permalink
firmware/stax/use_cases.py: Increase confirm to 2.4sec
Browse files Browse the repository at this point in the history
This is necessary to adapt for Hold to approve duration change in the
SDK.
  • Loading branch information
Xavier Chapron committed Jul 31, 2023
1 parent 00d92e0 commit 2ba001e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.2] - 2023-07-31

### Changed:
- firmware:use_case: Increase confirm time to 2.4 sec following SDK change

## [1.11.1] - 2023-07-19

### Fixed:
Expand Down
4 changes: 2 additions & 2 deletions src/ragger/firmware/stax/use_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def reject(self):
self.client.finger_touch(*self.positions["reject"])

def confirm(self):
# SDK needs at least 1.5s for long press.
self.client.finger_touch(*self.positions["confirm"], 1.5)
# SDK needs at least 2.4s for long press.
self.client.finger_touch(*self.positions["confirm"], 2.4)


class UseCaseViewDetails(_UseCase):
Expand Down

0 comments on commit 2ba001e

Please sign in to comment.