add necessary attribute if compiled on ESP8266 platform

This commit is contained in:
ozgunawesome 2021-07-22 12:38:03 -07:00
parent e345c00fed
commit 9d971025aa
1 changed files with 6 additions and 0 deletions

View File

@ -1143,6 +1143,9 @@ void Track::treset() {
rawcode.nb_sections = 0;
}
#if defined(ESP8266)
IRAM_ATTR
#endif
void Track::ih_handle_interrupt() {
static unsigned long last_t = 0;
const unsigned long t = micros();
@ -1571,6 +1574,9 @@ bool Track::do_events() {
return false;
}
#if defined(ESP8266)
IRAM_ATTR
#endif
void Track::ih_handle_interrupt_wait_free() {
static unsigned long last_t = 0;