Flash internal module

This commit is contained in:
Bertrand Songis
2019-02-20 14:59:38 +01:00
parent eb453293f5
commit 655966fba2
13 changed files with 422 additions and 361 deletions
@@ -141,16 +141,19 @@ void onSdManagerMenu(const char * result)
}
else if (result == STR_FLASH_INTERNAL_MODULE) {
getSelectionFullPath(lfn);
sportFlashDevice(INTERNAL_MODULE, lfn);
DeviceFirmwareUpdate device(INTERNAL_MODULE);
device.flashFile(lfn);
}
else if (result == STR_FLASH_EXTERNAL_MODULE) {
// needed on X-Lite (as the R9M needs 2S while the external device flashing port only provides 5V)
getSelectionFullPath(lfn);
sportFlashDevice(EXTERNAL_MODULE, lfn);
DeviceFirmwareUpdate device(EXTERNAL_MODULE);
device.flashFile(lfn);
}
else if (result == STR_FLASH_EXTERNAL_DEVICE) {
getSelectionFullPath(lfn);
sportFlashDevice(FLASHING_MODULE, lfn);
DeviceFirmwareUpdate device(FLASHING_MODULE);
device.flashFile(lfn);
}
#endif
#if defined(LUA)