From c53c87499bbf99bb105391fdcec691e2cdf7801d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sat, 21 Jan 2023 18:46:17 +0100 Subject: [PATCH] missed a few --- src/mesh/MeshService.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesh/MeshService.cpp b/src/mesh/MeshService.cpp index 55a8721b5..85a6390c9 100644 --- a/src/mesh/MeshService.cpp +++ b/src/mesh/MeshService.cpp @@ -134,14 +134,14 @@ void MeshService::handleToRadio(meshtastic_MeshPacket &p) { #ifdef ARCH_PORTDUINO // Simulates device is receiving a packet via the LoRa chip - if (p.decoded.portnum == PortNum_SIMULATOR_APP) { + if (p.decoded.portnum == meshtastic_PortNum_SIMULATOR_APP) { // Simulator packet (=Compressed packet) is encapsulated in a MeshPacket, so need to unwrap first - Compressed scratch; - Compressed *decoded = NULL; - if (p.which_payload_variant == MeshPacket_decoded_tag) { + meshtastic_Compressed scratch; + meshtastic_Compressed *decoded = NULL; + if (p.which_payload_variant == meshtastic_MeshPacket_decoded_tag) { memset(&scratch, 0, sizeof(scratch)); p.decoded.payload.size = - pb_decode_from_bytes(p.decoded.payload.bytes, p.decoded.payload.size, &Compressed_msg, &scratch); + pb_decode_from_bytes(p.decoded.payload.bytes, p.decoded.payload.size, &meshtastic_Compressed_msg, &scratch); if (p.decoded.payload.size) { decoded = &scratch; // Extract the original payload and replace