delay => vTaskDelay
This commit is contained in:
parent
218b48988d
commit
ff2344a75e
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,8 @@ int console_esp32::wait_for_char_ll(const short timeout)
|
||||||
return port->read();
|
return port->read();
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(10);
|
// delay(10);
|
||||||
|
vTaskDelay(10 / portTICK_PERIOD_MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -103,7 +104,7 @@ void console_esp32::panel_update_thread()
|
||||||
pixels.show();
|
pixels.show();
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
vTaskDelay(20 / portTICK_RATE_MS);
|
vTaskDelay(20 / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// note that these are approximately as there's no mutex on the emulation
|
// note that these are approximately as there's no mutex on the emulation
|
||||||
|
|
Loading…
Add table
Reference in a new issue