Skip to content

Commit

Permalink
More DFU tries for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxushka committed Aug 30, 2023
1 parent 968cfe0 commit 8759d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chameleonultragui/lib/bridge/dfu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class DFUCommunicator {
for (var offset = 0; offset < firmwareBytes.length; offset += length) {
var tries = 0;
var crcBackup = crc;
for (; tries < 10; tries++) {
for (; tries < ((Platform.isIOS) ? 50 : 10); tries++) {
await createObject(
objectType, min(firmwareBytes.length - offset, length));

Expand Down

0 comments on commit 8759d41

Please sign in to comment.