Fixes to work again with old idf too

This commit is contained in:
2022-03-05 15:25:41 +01:00
parent 5ec41bde78
commit c41ecf5ea1

View File

@@ -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;