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

pull/7783/head
Seon Rozenblum 2021-09-11 14:48:11 +10:00 zatwierdzone przez Damien George
rodzic 4552f1816b
commit f690fd3a47
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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