From 399e053ebd16ab20477502087dbf7d01c8a6dae3 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Mon, 2 May 2022 13:04:05 +1000 Subject: [PATCH] workaround for undefined payload type on phoneapi --- src/mesh/PhoneAPI.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesh/PhoneAPI.cpp b/src/mesh/PhoneAPI.cpp index 033ef4906..cc40ff728 100644 --- a/src/mesh/PhoneAPI.cpp +++ b/src/mesh/PhoneAPI.cpp @@ -179,6 +179,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf) // Encapsulate as a FromRadio packet fromRadioScratch.which_payloadVariant = FromRadio_packet_tag; fromRadioScratch.packet = *packetForPhone; + + // TODO: Remove with compression rework + fromRadioScratch.packet.decoded.which_payloadVariant = Data_payload_tag; } releasePhonePacket(); break;