Commit 6a693a78 authored by Anon's avatar Anon

LowEffortService: Filter for relevant characteristic.

parent 376a76ae
......@@ -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