forked from Makuna/NeoPixelBus
Removed arduino's delay() call
This commit is contained in:
@@ -305,7 +305,7 @@ public:
|
|||||||
|
|
||||||
// Need 100% focus on instruction timing
|
// Need 100% focus on instruction timing
|
||||||
#if defined(ARDUINO_ARCH_ESP32)
|
#if defined(ARDUINO_ARCH_ESP32)
|
||||||
delay(1); // required
|
vTaskDelay(1 / portTICK_PERIOD_MS); // required
|
||||||
portMUX_TYPE updateMux = portMUX_INITIALIZER_UNLOCKED;
|
portMUX_TYPE updateMux = portMUX_INITIALIZER_UNLOCKED;
|
||||||
|
|
||||||
portENTER_CRITICAL(&updateMux);
|
portENTER_CRITICAL(&updateMux);
|
||||||
|
Reference in New Issue
Block a user