Skip to content

Commit

Permalink
backends/p4android/scanner: fix crash when getting rssi
Browse files Browse the repository at this point in the history
In hbldh#1047, the call to getRssi() was broken by using the wrong object.

This fixes the mistake.

Fixes hbldh#1085.
  • Loading branch information
dlech authored and pmessan committed Nov 28, 2022
1 parent 3e94760 commit b80d71c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.rst
Expand Up @@ -12,8 +12,7 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0

Fixed
-----
* BlueZ: Cancel the device discovery wait task if the device disconnects in
between to avoid a timeout
* Fixed crash in Android backend introduced in v0.19.0. Fixes #1085.

`0.19.0`_ (2022-10-13)
======================
Expand Down
2 changes: 1 addition & 1 deletion bleak/backends/p4android/scanner.py
Expand Up @@ -256,7 +256,7 @@ def _handle_scan_result(self, result):
service_data=service_data,
service_uuids=service_uuids,
tx_power=tx_power,
rssi=native_device.getRssi(),
rssi=result.getRssi(),
platform_data=(result,),
)

Expand Down

0 comments on commit b80d71c

Please sign in to comment.