Removed arduino's delay() call

This commit is contained in:
2021-08-09 16:14:43 +02:00
parent c1b2d60757
commit fc7acf4aeb

View File

@ -305,7 +305,7 @@ public:
// Need 100% focus on instruction timing
#if defined(ARDUINO_ARCH_ESP32)
delay(1); // required
vTaskDelay(1 / portTICK_PERIOD_MS); // required
portMUX_TYPE updateMux = portMUX_INITIALIZER_UNLOCKED;
portENTER_CRITICAL(&updateMux);
@ -398,4 +398,4 @@ typedef NeoEsp8266BitBang400KbpsInvertedMethod NeoEsp8266BitBangApa106InvertedMe
#endif
// ESP bitbang doesn't have defaults and should avoided except for testing
#endif
#endif