mirror of
https://github.com/manuelbl/ttn-esp32.git
synced 2024-11-01 20:49:45 +01:00
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:
parent
89ad39d463
commit
61771c0bfa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user