igpsport: explicitly set MTU before communicating

This is necessary for the BCS200S to work.
This commit is contained in:
Richard Nauber
2026-05-13 23:33:24 +02:00
committed by José Rebelo
parent dacf0471ef
commit 6461a226fc
@@ -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);