Cosmetics

This commit is contained in:
Bertrand Songis
2020-03-18 18:00:36 +01:00
parent c8c0ecb58a
commit 966746c5a3
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -534,8 +534,10 @@ bool MultiDeviceFirmwareUpdate::flashFirmware(const char * filename, ProgressHan
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
EXTERNAL_MODULE_OFF();
#if HAS_SPORT_UPDATE_CONNECTOR()
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
SPORT_UPDATE_POWER_OFF();
#endif
progressHandler(getBasename(filename), STR_DEVICE_RESET, 0, 0);
@@ -581,9 +583,11 @@ bool MultiDeviceFirmwareUpdate::flashFirmware(const char * filename, ProgressHan
setupPulsesExternalModule();
}
#if HAS_SPORT_UPDATE_CONNECTOR()
if (spuPwr) {
SPORT_UPDATE_POWER_ON();
}
#endif
resumePulses();