fix rare gurumeditation if we are unlucky and some ISR code is in serial flash

This commit is contained in:
geeksville
2020-05-14 12:46:29 -07:00
parent a0b43b9a95
commit 140e29840a
2 changed files with 7 additions and 8 deletions

View File

@@ -61,8 +61,13 @@ class NotifiedWorkerThread : public WorkerThread
/**
* Notify from an ISR
*
* This must be inline or IRAM_ATTR on ESP32
*/
void notifyFromISR(BaseType_t *highPriWoken, uint32_t v = 0, eNotifyAction action = eNoAction);
inline void notifyFromISR(BaseType_t *highPriWoken, uint32_t v = 0, eNotifyAction action = eNoAction)
{
xTaskNotifyFromISR(taskHandle, v, action, highPriWoken);
}
protected:
/**