From 11f184e67a11fd4ef0834106279bd1f564b6a6c7 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 6 Apr 2019 12:55:18 +0200 Subject: [PATCH] use TaskNotifyFrom ISR inside Ticker functions --- src/cyclic.cpp | 2 +- src/senddata.cpp | 2 +- src/timekeeper.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {