1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15: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)
.setForeground(false)
.setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(false)
.setMtu(23)
.disableMtuRequest()
.setZip(uri);
controller = starter.start(getContext(), PineTimeDFUService.class);