make this function IRAM_ATTR because it's used from IRQ -> otherwise "Cache disabled but cached memory region accessed" if flash is busy

This commit is contained in:
Leif Jakob 2023-08-07 19:55:31 +02:00
parent 89ad39d463
commit 61771c0bfa
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ int64_t os_time_to_esp_time(int64_t esp_now, uint32_t os_time)
return esp_time;
}
int64_t get_current_time()
int64_t IRAM_ATTR get_current_time()
{
return esp_timer_get_time() + time_offset;
}