1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

Add progress dialogs for flash save and erase

This commit is contained in:
Nicholas Sherlock 2015-02-13 21:05:36 +13:00
parent 0f22b92e35
commit 49741b45a8
7 changed files with 357 additions and 63 deletions

View file

@ -670,14 +670,16 @@ var MSP = {
console.log('Led strip config saved');
break;
case MSP_codes.MSP_DATAFLASH_SUMMARY:
DATAFLASH.sectors = data.getUint32(0, 1);
DATAFLASH.totalSize = data.getUint32(4, 1);
DATAFLASH.ready = (data.getUint8(0) & 1) != 0;
DATAFLASH.sectors = data.getUint32(1, 1);
DATAFLASH.totalSize = data.getUint32(5, 1);
DATAFLASH.usedSize = data.getUint32(9, 1);
break;
case MSP_codes.MSP_DATAFLASH_READ:
// No-op, let callback handle it
break;
case MSP_codes.MSP_DATAFLASH_ERASE:
console.log("Data flash erased");
console.log("Data flash erase begun...");
break;
case MSP_codes.MSP_SET_MODE_RANGE:
console.log('Mode range saved');