From a53338156a7030f639af3e3bef9333d3d55ffe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gjels=C3=B8?= <36234524+gjelsoe@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:22:20 +0100 Subject: [PATCH] Trunk --- src/modules/DetectionSensorModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/DetectionSensorModule.cpp b/src/modules/DetectionSensorModule.cpp index 817248970..5fcc8dcbd 100644 --- a/src/modules/DetectionSensorModule.cpp +++ b/src/modules/DetectionSensorModule.cpp @@ -122,7 +122,7 @@ void DetectionSensorModule::sendDetectionMessage() char *message = new char[40]; sprintf(message, "%s detected", moduleConfig.detection_sensor.name); meshtastic_MeshPacket *p = allocDataPacket(); - p->to = nodeDB->getNodeNum(); //set destination to self or it would go to 0xffffffff + p->to = nodeDB->getNodeNum(); // set destination to self or it would go to 0xffffffff p->want_ack = false; p->decoded.payload.size = strlen(message); memcpy(p->decoded.payload.bytes, message, p->decoded.payload.size); @@ -142,7 +142,7 @@ void DetectionSensorModule::sendCurrentStateMessage(bool state) char *message = new char[40]; sprintf(message, "%s state: %i", moduleConfig.detection_sensor.name, state); meshtastic_MeshPacket *p = allocDataPacket(); - p->to = nodeDB->getNodeNum(); //set destination to self or it would go to 0xffffffff + p->to = nodeDB->getNodeNum(); // set destination to self or it would go to 0xffffffff p->want_ack = false; p->decoded.payload.size = strlen(message); memcpy(p->decoded.payload.bytes, message, p->decoded.payload.size);