workaround for undefined payload type on phoneapi

This commit is contained in:
Sacha Weatherstone 2022-05-02 13:04:05 +10:00
parent caac2ecb83
commit 399e053ebd
No known key found for this signature in database
GPG Key ID: 7AB2D7E206124B31

View File

@ -179,6 +179,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
// Encapsulate as a FromRadio packet // Encapsulate as a FromRadio packet
fromRadioScratch.which_payloadVariant = FromRadio_packet_tag; fromRadioScratch.which_payloadVariant = FromRadio_packet_tag;
fromRadioScratch.packet = *packetForPhone; fromRadioScratch.packet = *packetForPhone;
// TODO: Remove with compression rework
fromRadioScratch.packet.decoded.which_payloadVariant = Data_payload_tag;
} }
releasePhonePacket(); releasePhonePacket();
break; break;