From f7c21e9e629c2fed852a1b714af1b299bbab9e76 Mon Sep 17 00:00:00 2001 From: dakhnod Date: Wed, 15 Jan 2020 01:25:58 +0100 Subject: [PATCH] eliminated duplicate mtu change effect --- .../devices/qhybrid/adapter/fossil/FossilWatchAdapter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java index b5f1c54a9..58bfabb0a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/adapter/fossil/FossilWatchAdapter.java @@ -543,6 +543,11 @@ public class FossilWatchAdapter extends WatchAdapter { public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { super.onMtuChanged(gatt, mtu, status); + if(this.MTU == mtu){ + log("MTU changed, same value tho"); + return; + } + log("MTU changed: " + mtu); this.MTU = mtu;