From b99a5c6a0d71f1cfed3e7930596ae35d24043b8c Mon Sep 17 00:00:00 2001 From: Julian Sanin Date: Sun, 22 Aug 2021 10:53:13 +0200 Subject: [PATCH] Fix interrupt sensor reporting This fixes the issue when both non-interrupt and interrupt type based sensors are used within the NodeManager sketch where high interrupt frequency greater than 1Hz can occur which causes none of the non-interrupt sensors to report its values after the report interval is over. --- nodemanager/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemanager/Node.cpp b/nodemanager/Node.cpp index 67f020b..58294c7 100644 --- a/nodemanager/Node.cpp +++ b/nodemanager/Node.cpp @@ -288,7 +288,7 @@ void NodeManager::loop() { // call the sensor interrupt() and then loop(), provided the interrupt has been "accepted" by interrupt() if (sensor->interrupt()) sensor->loop(nullptr); } - else if (_last_interrupt_pin == -1) { + else { #endif // if just at the end of a cycle, call all the sensor's loop() sensor->loop(nullptr);