From 61771c0bfa906603c20e4f95320699d12d98876f Mon Sep 17 00:00:00 2001 From: Leif Jakob Date: Mon, 7 Aug 2023 19:55:31 +0200 Subject: [PATCH] make this function IRAM_ATTR because it's used from IRQ -> otherwise "Cache disabled but cached memory region accessed" if flash is busy --- src/hal/hal_esp32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal/hal_esp32.c b/src/hal/hal_esp32.c index 6ec41f0..63d19e0 100755 --- a/src/hal/hal_esp32.c +++ b/src/hal/hal_esp32.c @@ -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; }