DetectionSensor: broadcast all state changes

Closes #4753
This commit is contained in:
Augusto Zanellato
2024-09-18 19:43:13 +02:00
parent deada41cee
commit 2ebfcea94e
2 changed files with 11 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ class DetectionSensorModule : public SinglePortModule, private concurrency::OSTh
private:
bool firstTime = true;
uint32_t lastSentToMesh = 0;
bool wasDetected = false;
void sendDetectionMessage();
void sendCurrentStateMessage();
bool hasDetectionEvent();