Bsongis/sport power line on off (#7435)

SmartPort Power
This commit is contained in:
Bertrand Songis
2020-03-10 17:48:58 +01:00
committed by GitHub
parent cf5e2b3fd5
commit f100e4375a
24 changed files with 126 additions and 3 deletions
+5
View File
@@ -528,6 +528,7 @@ bool multiFlashFirmware(uint8_t moduleIdx, const char * filename)
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
EXTERNAL_MODULE_OFF();
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
SPORT_UPDATE_POWER_OFF();
drawProgressScreen(getBasename(filename), STR_DEVICE_RESET, 0, 0);
@@ -575,6 +576,10 @@ bool multiFlashFirmware(uint8_t moduleIdx, const char * filename)
setupPulsesExternalModule();
}
if (spuPwr) {
SPORT_UPDATE_POWER_ON();
}
resumePulses();
return result == nullptr;