loop() call yield() instead of vTaskDelay(1)
This commit is contained in:
1 parent
400edfa120
commit
5fd39b1e28
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ static void loop_task(void* arg)
|
||||
#endif
|
||||
|
||||
// To compatible with most code where loop is not rtos-aware
|
||||
vTaskDelay(1); //taskYIELD();
|
||||
taskYIELD(); // vTaskDelay(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user