1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

Fix DFU MTU value for PineTime

Explicitely disable the request MTU feature from the NRF DFU library to ensure that it'll send 20 bytes packets (instead of 253B, which will crash InfiniTime).
This commit is contained in:
Jean-François Milants 2023-12-31 10:46:19 +01:00 committed by Andreas Shimokawa
parent 6cc57a15f5
commit 73a3a4b603

View File

@ -458,7 +458,7 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL
.setKeepBond(true) .setKeepBond(true)
.setForeground(false) .setForeground(false)
.setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(false) .setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(false)
.setMtu(23) .disableMtuRequest()
.setZip(uri); .setZip(uri);
controller = starter.start(getContext(), PineTimeDFUService.class); controller = starter.start(getContext(), PineTimeDFUService.class);