From fc7acf4aeb3bdb4ebf4c19660ed6aa08105fc335 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 9 Aug 2021 16:14:43 +0200 Subject: [PATCH] Removed arduino's delay() call --- src/internal/NeoEspBitBangMethod.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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