feat(radio): OS compatibility layer (#5840)

This commit is contained in:
Raphael Coeffic
2025-05-03 19:07:49 +10:00
committed by GitHub
parent c996612b0a
commit ab2a19e153
92 changed files with 1740 additions and 896 deletions
+4 -3
View File
@@ -21,6 +21,7 @@
#include "edgetx.h"
#include "io/frsky_firmware_update.h"
#include "os/sleep.h"
#include "tasks/mixer_task.h"
#include "pxx2_ota.h"
@@ -37,7 +38,7 @@ bool Pxx2OtaUpdate::waitStep(uint8_t step, uint8_t timeout)
if (elapsed++ > timeout) {
return false;
}
RTOS_WAIT_MS(1);
sleep_ms(1);
telemetryWakeup();
}
@@ -135,7 +136,7 @@ void Pxx2OtaUpdate::flashFirmware(const char * filename, ProgressHandler progres
mixerTaskStop();
watchdogSuspend(100 /*1s*/);
RTOS_WAIT_MS(100);
sleep_ms(100);
moduleState[module].mode = MODULE_MODE_OTA_UPDATE;
const char * result = doFlashFirmware(filename, progressHandler);
@@ -152,7 +153,7 @@ void Pxx2OtaUpdate::flashFirmware(const char * filename, ProgressHandler progres
}
watchdogSuspend(100);
RTOS_WAIT_MS(100);
sleep_ms(100);
mixerTaskStart();
}