1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 14:25:11 +03:00

Simu threads now correctly stopped

This commit is contained in:
Bertrand Songis 2016-03-11 18:16:53 +01:00
parent 946c17770a
commit 2e57549982
4 changed files with 38 additions and 10 deletions

View file

@ -97,6 +97,11 @@ void mixerTask(void * pdata)
while(1) {
#if defined(SIMU)
if (main_thread_running == 0)
return;
#endif
if (!s_pulses_paused) {
uint16_t t0 = getTmr2MHz();
@ -149,6 +154,11 @@ void menusTask(void * pdata)
if (runtime < MENU_TASK_PERIOD_TICKS) {
CoTickDelay(MENU_TASK_PERIOD_TICKS - runtime);
}
#if defined(SIMU)
if (main_thread_running == 0)
return;
#endif
}
#if defined(PCBTARANIS) && defined(REV9E)