Skip to content

Commit f690fd3

Browse files
UnexpectedMakerdpgeorge
authored andcommitted
esp32/machine_timer: Use tx_update member for IDF 4.4 and above.
1 parent 4552f18 commit f690fd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/esp32/machine_timer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,12 @@ STATIC void machine_timer_isr(void *self_in) {
137137
#if CONFIG_IDF_TARGET_ESP32
138138
device->hw_timer[self->index].update = 1;
139139
#else
140+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)
141+
device->hw_timer[self->index].update.tx_update = 1;
142+
#else
140143
device->hw_timer[self->index].update.update = 1;
141144
#endif
145+
#endif
142146
timer_ll_clear_intr_status(device, self->index);
143147
timer_ll_set_alarm_enable(device, self->index, self->repeat);
144148

0 commit comments

Comments
 (0)