mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 06:15:10 +03:00
Model Setup refactoring
This commit is contained in:
parent
46dc85aa7e
commit
1d5b780c2f
12 changed files with 134 additions and 271 deletions
|
@ -133,13 +133,9 @@ TASK_FUNCTION(mixerTask)
|
|||
}
|
||||
#endif
|
||||
|
||||
uint32_t now = RTOS_GET_TIME();
|
||||
uint32_t now = RTOS_GET_MS();
|
||||
bool run = false;
|
||||
#if !defined(SIMU) && defined(STM32)
|
||||
if ((now - lastRunTime) >= (usbStarted() ? 5 : 10)) { // run at least every 20ms (every 10ms if USB is active)
|
||||
#else
|
||||
if ((now - lastRunTime) >= 10) { // run at least every 20ms
|
||||
#endif
|
||||
if ((now - lastRunTime) >= 10) { // run at least every 10ms
|
||||
run = true;
|
||||
}
|
||||
else if (now == nextMixerTime[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue