From 13d2b01e5c7a073fb6010701f0837b7f21e64d9d Mon Sep 17 00:00:00 2001 From: pablo2048 Date: Sat, 22 Jul 2023 17:57:27 +0200 Subject: [PATCH] BugFix in ESP32 mode --- src/WSLed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WSLed.cpp b/src/WSLed.cpp index a4f9801..e69dd20 100644 --- a/src/WSLed.cpp +++ b/src/WSLed.cpp @@ -63,11 +63,11 @@ void wsLED::show() mask >>= 1; } ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false)); - _endtime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral + mEndTime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral #else noInterrupts(); #if defined(WSLED_PL9823) - espShow(_pin, color, 1 * 3, false); + espShow(mPin, color, 1 * 3, false); #else espShow(mPin, color, 1 * 3, true); #endif @@ -106,7 +106,7 @@ void wsLED::begin() config.rmt_mode = RMT_MODE_TX; config.channel = LED_RMT_TX_CHANNEL; - config.gpio_num = (gpio_num_t) _pin; + config.gpio_num = (gpio_num_t) mPin; config.mem_block_num = 3; config.tx_config.loop_en = false; config.tx_config.carrier_en = false;