From 6461a226fc23fd09881dacc9b74df5d588d6fef3 Mon Sep 17 00:00:00 2001 From: Richard Nauber Date: Fri, 15 Aug 2025 07:07:29 +0200 Subject: [PATCH] igpsport: explicitly set MTU before communicating This is necessary for the BCS200S to work. --- .../service/devices/igpsport/IGPSportDeviceSupport.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java index 5cc478f93b..deddc55e4c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java @@ -173,6 +173,7 @@ public class IGPSportDeviceSupport extends AbstractBTLESingleDeviceSupport { protected TransactionBuilder initializeDevice(TransactionBuilder builder) { // mark the device as initializing builder.setDeviceState(GBDevice.State.INITIALIZING); + builder.requestMtu(mtuSize); readCharacteristic = getCharacteristic(IGPSportConstants.UUID_IGPSPORT_CHARACTERISTIC_FIRST_RX); writeCharacteristic = getCharacteristic(IGPSportConstants.UUID_IGPSPORT_CHARACTERISTIC_FIRST_TX); writeCharacteristicThird = getCharacteristic(IGPSportConstants.UUID_IGPSPORT_CHARACTERISTIC_THIRD_TX);