1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 21:05:26 +03:00

OTA update continued

This commit is contained in:
Bertrand Songis 2019-04-24 16:11:33 +02:00
parent 6e8b64cea4
commit 1cd8c93455
2 changed files with 3 additions and 8 deletions

View file

@ -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)

View file

@ -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