Skip to content

Commit

Permalink
Fixed device setup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rickkas7 committed Jan 5, 2022
1 parent 3482b20 commit d4fc727
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/assets/files/versionInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,5 +661,5 @@
"semVer": "3.2.0-rc.1"
}
],
"updated": 1640256921
"updated": 1641413166
}
2 changes: 1 addition & 1 deletion src/assets/js/device-restore-dfu.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ async function dfuDeviceRestore(usbDevice, options) {
await dfuseAltDevice.do_download(4096, flag, {doManifestation:false, noErase:true});
}
catch(e) {
const text = 'Error setting setup flag';
const text = 'Error setting setup done flag';
setStatus(text);
dfuErrors.push(text);
}
Expand Down
6 changes: 5 additions & 1 deletion src/assets/js/device-setup-usb.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ $(document).ready(function() {
// obj.partName == system-part1, system-part2, system-part3, bootloader, softdevice, tinker
// (obj.partName is tinker even for a custom binary)

if (!dfuPartTableInfo[obj.partName]) {
return;
}

if (obj.func != 'erase') {
pct += 100;
}
Expand Down Expand Up @@ -730,7 +734,7 @@ $(document).ready(function() {
}
}
else {
console.log('do something for dfu error');
console.log('do something for dfu error', restoreResult);
}

}
Expand Down

0 comments on commit d4fc727

Please sign in to comment.