Fix x10 internal module flashing
This commit is contained in:
@@ -320,6 +320,7 @@ const char * FrskyDeviceFirmwareUpdate::doFlashFirmware(const char * filename)
|
|||||||
#if defined(PCBHORUS)
|
#if defined(PCBHORUS)
|
||||||
if (module == INTERNAL_MODULE && information.productId == FIRMWARE_ID_XJT) {
|
if (module == INTERNAL_MODULE && information.productId == FIRMWARE_ID_XJT) {
|
||||||
INTERNAL_MODULE_ON();
|
INTERNAL_MODULE_ON();
|
||||||
|
RTOS_WAIT_MS(1);
|
||||||
intmoduleSerialStart(38400, true);
|
intmoduleSerialStart(38400, true);
|
||||||
GPIO_SetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
|
GPIO_SetBits(INTMODULE_BOOTCMD_GPIO, INTMODULE_BOOTCMD_GPIO_PIN);
|
||||||
result = uploadFileToHorusXJT(filename, &file);
|
result = uploadFileToHorusXJT(filename, &file);
|
||||||
|
|||||||
Reference in New Issue
Block a user