Skip to content

Commit

Permalink
Merge pull request #187 from LedgerHQ/fix/touch_finger
Browse files Browse the repository at this point in the history
Adapting to new Speculos `finger_touch` API call.
  • Loading branch information
lpascal-ledger committed May 6, 2024
2 parents 3fd293e + 4d69882 commit 481b5ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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.18.2] - 2024-05-06

### Fixed
- backend: Adapting to new Speculos API `finger_touch` function.

## [1.18.1] - 2024-04-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/ragger/backend/speculos.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def both_click(self) -> None:
self._client.press_and_release("both")

def finger_touch(self, x: int = 0, y: int = 0, delay: float = 0.1) -> None:
self._client.finger_touch(x, y, delay)
self._client.finger_touch(x, y, delay=delay)

def _save_screen_snapshot(self, snap: BytesIO, path: Path) -> None:
self.logger.info(f"Saving screenshot to image '{path}'")
Expand Down
Binary file modified tests/snapshots/flex/waiting_screen/00000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 481b5ea

Please sign in to comment.