mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_timer: Adds IRAM_ATTR for esp_timer_restart and esp_timer_is_active
Closes https://github.com/espressif/esp-idf/issues/10522 Closes https://github.com/espressif/esp-idf/issues/10859
This commit is contained in:
parent
c49e8d3611
commit
745cac7a04
@ -621,7 +621,10 @@ int64_t IRAM_ATTR esp_timer_get_next_alarm_for_wake_up(void)
|
||||
return next_alarm;
|
||||
}
|
||||
|
||||
bool esp_timer_is_active(esp_timer_handle_t timer)
|
||||
bool IRAM_ATTR esp_timer_is_active(esp_timer_handle_t timer)
|
||||
{
|
||||
if (timer == NULL) {
|
||||
return false;
|
||||
}
|
||||
return timer_armed(timer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user