Skip to content

Commit 8e06c30

Browse files
committed
cosmetics
1 parent 40dbcc1 commit 8e06c30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cores/esp8266/Schedule.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ bool schedule_function_us(std::function<bool(void)>&& fn, uint32_t repeat_us)
7474
return true;
7575
}
7676

77-
bool ICACHE_RAM_ATTR schedule_function_us(const std::function<bool(void)>& fn, uint32_t repeat_us)
77+
IRAM_ATTR // (not only) called from ISR
78+
bool schedule_function_us(const std::function<bool(void)>& fn, uint32_t repeat_us)
7879
{
7980
return schedule_function_us(std::function<bool(void)>(fn), repeat_us);
8081
}
@@ -85,7 +86,8 @@ bool schedule_function(std::function<void(void)>&& fn)
8586
return schedule_function_us([fn]() { fn(); return false; }, 0);
8687
}
8788

88-
bool ICACHE_RAM_ATTR schedule_function(const std::function<void(void)>& fn)
89+
IRAM_ATTR // called from ISR
90+
bool schedule_function(const std::function<void(void)>& fn)
8991
{
9092
return schedule_function(std::function<void(void)>(fn));
9193
}

0 commit comments

Comments
 (0)