feat(radio): OS compatibility layer (#5840)
This commit is contained in:
@@ -31,6 +31,7 @@ using std::list;
|
||||
#include "yaml/yaml_labelslist.h"
|
||||
#include "yaml/yaml_modelslist.h"
|
||||
#include "yaml/yaml_parser.h"
|
||||
#include "os/sleep.h"
|
||||
|
||||
#if defined(USBJ_EX)
|
||||
#include "usb_joystick.h"
|
||||
@@ -727,7 +728,7 @@ bool ModelMap::renameLabel(const std::string &from, std::string to,
|
||||
(uint8_t *)modeldata, 0) != NULL);
|
||||
}
|
||||
#if defined(SIMU)
|
||||
if (SIMU_SLEEP_OR_EXIT_MS(100)) break;
|
||||
sleep_ms(100);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "edgetx.h"
|
||||
#include "os/sleep.h"
|
||||
#include "timers_driver.h"
|
||||
#include "tasks/mixer_task.h"
|
||||
#include "mixes.h"
|
||||
@@ -76,8 +77,9 @@ void preModelLoad()
|
||||
LayoutFactory::deleteCustomScreens(true);
|
||||
#endif
|
||||
|
||||
if (needDelay)
|
||||
RTOS_WAIT_MS(200);
|
||||
if (needDelay) {
|
||||
sleep_ms(200);
|
||||
}
|
||||
}
|
||||
|
||||
void postRadioSettingsLoad()
|
||||
|
||||
Reference in New Issue
Block a user