Cosmetics
This commit is contained in:
@@ -488,8 +488,10 @@ const char * FrskyDeviceFirmwareUpdate::flashFirmware(const char * filename, Pro
|
|||||||
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
||||||
EXTERNAL_MODULE_OFF();
|
EXTERNAL_MODULE_OFF();
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
||||||
SPORT_UPDATE_POWER_OFF();
|
SPORT_UPDATE_POWER_OFF();
|
||||||
|
#endif
|
||||||
|
|
||||||
progressHandler(getBasename(filename), STR_DEVICE_RESET, 0, 0);
|
progressHandler(getBasename(filename), STR_DEVICE_RESET, 0, 0);
|
||||||
|
|
||||||
@@ -532,9 +534,11 @@ const char * FrskyDeviceFirmwareUpdate::flashFirmware(const char * filename, Pro
|
|||||||
setupPulsesExternalModule();
|
setupPulsesExternalModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
if (spuPwr) {
|
if (spuPwr) {
|
||||||
SPORT_UPDATE_POWER_ON();
|
SPORT_UPDATE_POWER_ON();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
state = SPORT_IDLE;
|
state = SPORT_IDLE;
|
||||||
resumePulses();
|
resumePulses();
|
||||||
@@ -757,8 +761,10 @@ const char * FrskyChipFirmwareUpdate::flashFirmware(const char * filename, Progr
|
|||||||
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
||||||
EXTERNAL_MODULE_OFF();
|
EXTERNAL_MODULE_OFF();
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
||||||
SPORT_UPDATE_POWER_OFF();
|
SPORT_UPDATE_POWER_OFF();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (wait) {
|
if (wait) {
|
||||||
/* wait 2s off */
|
/* wait 2s off */
|
||||||
@@ -796,9 +802,11 @@ const char * FrskyChipFirmwareUpdate::flashFirmware(const char * filename, Progr
|
|||||||
setupPulsesExternalModule();
|
setupPulsesExternalModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
if (spuPwr) {
|
if (spuPwr) {
|
||||||
SPORT_UPDATE_POWER_ON();
|
SPORT_UPDATE_POWER_ON();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
resumePulses();
|
resumePulses();
|
||||||
|
|
||||||
|
|||||||
@@ -534,8 +534,10 @@ bool MultiDeviceFirmwareUpdate::flashFirmware(const char * filename, ProgressHan
|
|||||||
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
uint8_t extPwr = IS_EXTERNAL_MODULE_ON();
|
||||||
EXTERNAL_MODULE_OFF();
|
EXTERNAL_MODULE_OFF();
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
uint8_t spuPwr = IS_SPORT_UPDATE_POWER_ON();
|
||||||
SPORT_UPDATE_POWER_OFF();
|
SPORT_UPDATE_POWER_OFF();
|
||||||
|
#endif
|
||||||
|
|
||||||
progressHandler(getBasename(filename), STR_DEVICE_RESET, 0, 0);
|
progressHandler(getBasename(filename), STR_DEVICE_RESET, 0, 0);
|
||||||
|
|
||||||
@@ -581,9 +583,11 @@ bool MultiDeviceFirmwareUpdate::flashFirmware(const char * filename, ProgressHan
|
|||||||
setupPulsesExternalModule();
|
setupPulsesExternalModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAS_SPORT_UPDATE_CONNECTOR()
|
||||||
if (spuPwr) {
|
if (spuPwr) {
|
||||||
SPORT_UPDATE_POWER_ON();
|
SPORT_UPDATE_POWER_ON();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
resumePulses();
|
resumePulses();
|
||||||
|
|
||||||
|
|||||||
@@ -174,9 +174,7 @@
|
|||||||
|
|
||||||
// S.Port update connector
|
// S.Port update connector
|
||||||
#define SPORT_MAX_BAUDRATE 250000 // < 400000
|
#define SPORT_MAX_BAUDRATE 250000 // < 400000
|
||||||
#define SPORT_UPDATE_RCC_AHB1Periph RCC_AHB1Periph_GPIOH
|
#define SPORT_UPDATE_RCC_AHB1Periph 0
|
||||||
#define SPORT_UPDATE_PWR_GPIO GPIOH
|
|
||||||
#define SPORT_UPDATE_PWR_GPIO_PIN GPIO_Pin_13 // PH.13
|
|
||||||
#define HAS_SPORT_UPDATE_CONNECTOR() (false)
|
#define HAS_SPORT_UPDATE_CONNECTOR() (false)
|
||||||
|
|
||||||
// Led
|
// Led
|
||||||
|
|||||||
Reference in New Issue
Block a user