From 9d134d9f6c90a3ba15a3ac84dd9cc42356af437a Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 9 Aug 2021 16:16:21 +0200 Subject: [PATCH] Removed arduino's delay() call --- src/espwifistack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/espwifistack.cpp b/src/espwifistack.cpp index b178e69..43a8ff3 100644 --- a/src/espwifistack.cpp +++ b/src/espwifistack.cpp @@ -1259,7 +1259,7 @@ esp_err_t goe_wifi_set_ap_ip(const config &config, const static_ip_config &ip) { if (i < 20) { - vTaskDelay(std::chrono::ceil(50ms).count()); + espcpputils::delay(50ms); continue; } else @@ -1720,7 +1720,7 @@ void init(const config &config) return; } - vTaskDelay(std::chrono::ceil(100ms).count()); + espcpputils::delay(100ms); if (const auto result = goe_wifi_enable_ap(true, config); result != ESP_OK) {