Pebble 2/LE: only notify once when first PP packets are incoming
This commit is contained in:
parent
bc9041a4c9
commit
ae2c107ed1
|
@ -103,9 +103,11 @@ class PebbleGATTServer extends BluetoothGattServerCallback {
|
||||||
LOG.warn("unexpected write request");
|
LOG.warn("unexpected write request");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mPebbleLESupport.mIsConnected = true;
|
if (!mPebbleLESupport.mIsConnected) {
|
||||||
synchronized (mPebbleLESupport) {
|
mPebbleLESupport.mIsConnected = true;
|
||||||
mPebbleLESupport.notify();
|
synchronized (mPebbleLESupport) {
|
||||||
|
mPebbleLESupport.notify();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LOG.info("write request: offset = " + offset + " value = " + GB.hexdump(value, 0, -1));
|
LOG.info("write request: offset = " + offset + " value = " + GB.hexdump(value, 0, -1));
|
||||||
int header = value[0] & 0xff;
|
int header = value[0] & 0xff;
|
||||||
|
|
Loading…
Reference in New Issue