From c41ecf5ea1ea784b539a4608d644f165a4830b43 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sat, 5 Mar 2022 15:25:41 +0100 Subject: [PATCH] Fixes to work again with old idf too --- platforms/esp/32/clockless_rmt_esp32.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platforms/esp/32/clockless_rmt_esp32.cpp b/platforms/esp/32/clockless_rmt_esp32.cpp index 71c2065..6a2dcdd 100644 --- a/platforms/esp/32/clockless_rmt_esp32.cpp +++ b/platforms/esp/32/clockless_rmt_esp32.cpp @@ -446,7 +446,11 @@ void ESP32RMTController::startOnChannel(int channel) // -- Initialize the counters that keep track of where we are in // the pixel data and the RMT buffer - mRMT_mem_start = & (RMTMEM.chan[mRMT_channel].data32[0]); + mRMT_mem_start = & (RMTMEM.chan[mRMT_channel].data32[0] +#ifdef OLD_IDF + .val +#endif + ); mRMT_mem_ptr = mRMT_mem_start; mCur = 0; mWhichHalf = 0;