We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec320c commit 4885739Copy full SHA for 4885739
connectivity/lorawan/system/LoRaWANTimer.cpp
@@ -64,3 +64,8 @@ void LoRaWANTimeHandler::stop(timer_event_t &obj)
64
_queue->cancel(obj.timer_id);
65
obj.timer_id = 0;
66
}
67
+
68
+void LoRaWANTimeHandler::clear(timer_event_t &obj)
69
+{
70
+ obj.timer_id = 0;
71
+}
connectivity/lorawan/system/LoRaWANTimer.h
@@ -76,6 +76,13 @@ class LoRaWANTimeHandler {
76
*/
77
void stop(timer_event_t &obj);
78
79
+ /** Clear timer state so it is not inadvertently canceled. This function
80
+ * must be called by the callback registered in init.
81
+ *
82
+ * @param [in] obj The structure containing the timer object parameters.
83
+ */
84
+ void clear(timer_event_t &obj);
85
86
private:
87
events::EventQueue *_queue;
88
};
0 commit comments