mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Pebble 2/LE: only notify once when first PP packets are incoming
This commit is contained in:
@@ -103,9 +103,11 @@ class PebbleGATTServer extends BluetoothGattServerCallback {
|
||||
LOG.warn("unexpected write request");
|
||||
return;
|
||||
}
|
||||
mPebbleLESupport.mIsConnected = true;
|
||||
synchronized (mPebbleLESupport) {
|
||||
mPebbleLESupport.notify();
|
||||
if (!mPebbleLESupport.mIsConnected) {
|
||||
mPebbleLESupport.mIsConnected = true;
|
||||
synchronized (mPebbleLESupport) {
|
||||
mPebbleLESupport.notify();
|
||||
}
|
||||
}
|
||||
LOG.info("write request: offset = " + offset + " value = " + GB.hexdump(value, 0, -1));
|
||||
int header = value[0] & 0xff;
|
||||
|
Reference in New Issue
Block a user