Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Jan 25, 2024
1 parent 66460e9 commit 03ca7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions examples/SendReceiveClient/SendReceiveClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ void telemetry_callback(uint32_t from, meshtastic_Telemetry* telemetry) {
Serial.print("Received telemetry from ");
Serial.print(from);
Serial.print(": ");
if (telemetry->variant.device_metrics) {
Serial.println("Device Metrics: %fV", telemetry->variant.device_metrics->voltage);
if (telemetry->which_variant == meshtastic_Telemetry_device_metrics_tag) {
Serial.print("Device Metrics: ");
Serial.print(telemetry->variant.device_metrics.voltage);
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/mt_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ bool handle_config_complete_id(uint32_t now, uint32_t config_complete_id) {
return true;
}

if (mp.which_payload_variant == meshtastic_MeshPacket_decoded_tag && mp.decoded.portnum == ourPortNum) {


bool handle_mesh_packet(meshtastic_MeshPacket *meshPacket) {
if (meshPacket->which_payload_variant == meshtastic_MeshPacket_decoded_tag) {
if (meshPacket->decoded.portnum == meshtastic_PortNum_TEXT_MESSAGE_APP) {
Expand Down

0 comments on commit 03ca7a1

Please sign in to comment.