Skip to content
Snippets Groups Projects
Commit 3c989c54 authored by Anon's avatar Anon
Browse files

Merge branch 'callback-fix' into 'master'

LowEffortService: Filter for relevant characteristic.

See merge request card10/companion-app-android!21
parents 376a76ae 6a693a78
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,10 @@ class LowEffortService(
}
override fun onCharacteristicChanged(characteristic: BluetoothGattCharacteristic) {
if (characteristic.uuid != FILE_RX_UUID) {
return
}
listener?.onPacketReceived(Packet.fromBytes(characteristic.value))
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment