Skip to content

Commit

Permalink
[fix] New Speculos API will break if we don't explicit the 'delay' ke…
Browse files Browse the repository at this point in the history
…yword argument
  • Loading branch information
lpascal-ledger committed May 6, 2024
1 parent 3fd293e commit 4d69882
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
Loading
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 4d69882

Please sign in to comment.