Changes needed to compile again with new idf

This commit is contained in:
2022-03-17 14:45:08 +01:00
parent c41ecf5ea1
commit 12a66541c3

View File

@@ -6,7 +6,10 @@
#include "esp_idf_version.h"
#include "hal/rmt_ll.h"
#include "driver/rmt.h"
// RMTMEM address is declared in <target>.peripherals.ld
extern "C" rmt_mem_t RMTMEM;
// -- Forward reference
class ESP32RMTController;
@@ -446,11 +449,7 @@ 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]
#ifdef OLD_IDF
.val
#endif
);
mRMT_mem_start = & (RMTMEM.chan[mRMT_channel].data32[0].val);
mRMT_mem_ptr = mRMT_mem_start;
mCur = 0;
mWhichHalf = 0;