mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
OTA update continued
This commit is contained in:
parent
6e8b64cea4
commit
1cd8c93455
2 changed files with 3 additions and 8 deletions
|
@ -176,8 +176,8 @@ void onSdManagerMenu(const char * result)
|
||||||
}
|
}
|
||||||
else if (result == STR_FLASH_RECEIVER_OTA) {
|
else if (result == STR_FLASH_RECEIVER_OTA) {
|
||||||
getSelectionFullPath(lfn);
|
getSelectionFullPath(lfn);
|
||||||
moduleState[EXTERNAL_MODULE].mode = MODULE_MODE_BIND;
|
moduleState[EXTERNAL_MODULE].startBind(&reusableBuffer.sdManager.otaInformation);
|
||||||
// TODO
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if defined(LUA)
|
#if defined(LUA)
|
||||||
|
|
|
@ -1178,12 +1178,7 @@ union ReusableBuffer
|
||||||
uint16_t offset;
|
uint16_t offset;
|
||||||
uint16_t count;
|
uint16_t count;
|
||||||
char originalName[SD_SCREEN_FILE_LENGTH+1];
|
char originalName[SD_SCREEN_FILE_LENGTH+1];
|
||||||
struct {
|
BindInformation otaInformation;
|
||||||
uint8_t step;
|
|
||||||
char candidateReceiversNames[PXX2_MAX_RECEIVERS_PER_MODULE][PXX2_LEN_RX_NAME + 1];
|
|
||||||
uint8_t candidateReceiversCount;
|
|
||||||
uint8_t receiverIndex;
|
|
||||||
} otaUpdate;
|
|
||||||
} sdManager;
|
} sdManager;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue