diff --git a/src/cyclic.cpp b/src/cyclic.cpp index eb3f9a99..51a72671 100644 --- a/src/cyclic.cpp +++ b/src/cyclic.cpp @@ -9,7 +9,7 @@ static const char TAG[] = __FILE__; Ticker housekeeper; -void housekeeping() { xTaskNotify(irqHandlerTask, CYCLIC_IRQ, eSetBits); } +void housekeeping() { xTaskNotifyFromISR(irqHandlerTask, CYCLIC_IRQ, eSetBits, NULL); } // do all housekeeping void doHousekeeping() { diff --git a/src/senddata.cpp b/src/senddata.cpp index 9eb475b9..be84c677 100644 --- a/src/senddata.cpp +++ b/src/senddata.cpp @@ -3,7 +3,7 @@ Ticker sendcycler; -void sendcycle() { xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits); } +void sendcycle() { xTaskNotifyFromISR(irqHandlerTask, SENDCYCLE_IRQ, eSetBits, NULL); } // put data to send in RTos Queues used for transmit over channels Lora and SPI void SendPayload(uint8_t port, sendprio_t prio) { diff --git a/src/timekeeper.cpp b/src/timekeeper.cpp index addd7f85..8077693b 100644 --- a/src/timekeeper.cpp +++ b/src/timekeeper.cpp @@ -20,7 +20,7 @@ HardwareSerial IF482(2); // use UART #2 (#1 may be in use for serial GPS) Ticker timesyncer; -void timeSync() { xTaskNotify(irqHandlerTask, TIMESYNC_IRQ, eSetBits); } +void timeSync() { xTaskNotifyFromISR(irqHandlerTask, TIMESYNC_IRQ, eSetBits, NULL); } time_t timeProvider(void) {