1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-12 21:19:25 +01:00

Pebble: delay 100ms after writing a pebble packet to the output steam

This fixes a problem on newer firmwares, probably from 3.0 on, where sending an
appmessage packet right after acknowledging a previous incoming appmessage
packet results in our outgoing appmessage packet to be NACKed by the pebble
firmware and not even reaching the app running on the pebble.
This commit is contained in:
Andreas Shimokawa 2016-07-31 23:49:19 +02:00
parent 8ba1ae3f3e
commit 4fe498efc2

View File

@ -457,6 +457,10 @@ public class PebbleIoThread extends GBDeviceIoThread {
} catch (IOException e) {
LOG.error("Error writing.", e);
}
try {
Thread.sleep(100);
} catch (InterruptedException ignored) {
}
}
@Override