Commit 3c989c54 authored by Anon's avatar Anon

Merge branch 'callback-fix' into 'master'

LowEffortService: Filter for relevant characteristic.

See merge request card10/companion-app-android!21
parents 376a76ae 6a693a78
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment