Skip to content

Commit

Permalink
Revert NodeNum()
Browse files Browse the repository at this point in the history
  • Loading branch information
gjelsoe authored and fifieldt committed Nov 11, 2024
1 parent 803c8c2 commit 738a5d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/modules/DetectionSensorModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ 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->want_ack = false;
p->decoded.payload.size = strlen(message);
memcpy(p->decoded.payload.bytes, message, p->decoded.payload.size);
Expand All @@ -145,7 +144,6 @@ 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->want_ack = false;
p->decoded.payload.size = strlen(message);
memcpy(p->decoded.payload.bytes, message, p->decoded.payload.size);
Expand Down

0 comments on commit 738a5d7

Please sign in to comment.