Prevent hal_ticks() from going into .text region
This will fix an issue when the flash is disabled (due to OTA update for example) and the cpu crashes with cache disabled access from ISR (when TTN executes)
This commit is contained in:
parent
fffe7bd8b3
commit
5b22f228da
|
@ -346,7 +346,7 @@ bool HAL_ESP32::wait(WaitKind waitKind)
|
|||
}
|
||||
|
||||
// Gets current time in LMIC ticks
|
||||
u4_t hal_ticks()
|
||||
u4_t IRAM_ATTR hal_ticks()
|
||||
{
|
||||
// LMIC tick unit: 16µs
|
||||
// esp_timer unit: 1µs
|
||||
|
|
Loading…
Reference in New Issue