esp32/machine_timer: Use tx_update member for IDF 4.4 and above.

This commit is contained in:
Seon Rozenblum 2021-09-11 14:48:11 +10:00 committed by Damien George
parent 4552f1816b
commit f690fd3a47
1 changed files with 4 additions and 0 deletions

View File

@ -137,8 +137,12 @@ STATIC void machine_timer_isr(void *self_in) {
#if CONFIG_IDF_TARGET_ESP32
device->hw_timer[self->index].update = 1;
#else
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)
device->hw_timer[self->index].update.tx_update = 1;
#else
device->hw_timer[self->index].update.update = 1;
#endif
#endif
timer_ll_clear_intr_status(device, self->index);
timer_ll_set_alarm_enable(device, self->index, self->repeat);