[simu] Updates for RTOS abstraction layer; Remove further SIMU_SLEEP usages.
This commit is contained in:
@@ -61,8 +61,11 @@ void bootloaderFlash(const char * filename)
|
||||
flashWrite(CONVERT_UINT_PTR(FIRMWARE_ADDRESS+i+j), (uint32_t *)(buffer+j));
|
||||
}
|
||||
drawProgressBar(STR_WRITING, i, BOOTLOADER_SIZE);
|
||||
if (!SIMU_SLEEP(30/*ms*/))
|
||||
#if defined(SIMU)
|
||||
// add an artificial delay and check for simu quit
|
||||
if (SIMU_SLEEP_OR_EXIT_MS(30))
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (unlocked) {
|
||||
|
||||
@@ -123,7 +123,8 @@ void sportProcessUpdatePacket(uint8_t * packet)
|
||||
bool sportWaitState(SportUpdateState state, int timeout)
|
||||
{
|
||||
#if defined(SIMU)
|
||||
SIMU_SLEEP(1);
|
||||
UNUSED(state);
|
||||
UNUSED(timeout);
|
||||
return true;
|
||||
#else
|
||||
watchdogSuspend(timeout / 10);
|
||||
|
||||
Reference in New Issue
Block a user