diff --git a/src/internal/NeoEspBitBangMethod.h b/src/internal/NeoEspBitBangMethod.h index 506adb7..bc2a779 100644 --- a/src/internal/NeoEspBitBangMethod.h +++ b/src/internal/NeoEspBitBangMethod.h @@ -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 \ No newline at end of file +#endif