1 parent 00a546e commit 8cbc60eCopy full SHA for 8cbc60e
cores/esp32/esp32-hal-rmt.c
@@ -637,13 +637,13 @@ static void IRAM_ATTR _rmt_isr(void* arg)
637
data+=MAX_DATA_PER_CHANNEL*(g_rmt_objects[ch].buffers);
638
}
639
640
+uint32_t*data_received=data;
641
for (i=0; i<g_rmt_objects[ch].data_size; i++ ) {
642
*data++=RMTMEM.chan[ch].data32[i].val;
643
644
if (g_rmt_objects[ch].cb) {
-// actually received data ptr
645
-uint32_t*data=g_rmt_objects[ch].data_ptr;
646
- (g_rmt_objects[ch].cb)(data, _rmt_get_mem_len(ch));
+// actually received data ptr
+ (g_rmt_objects[ch].cb)(data_received, _rmt_get_mem_len(ch));
647
648
// restart the reception
649
RMT.conf_ch[ch].conf1.mem_owner=1;
0 commit comments