Guard simulator handling with HAS_RADIO flag

This commit is contained in:
GUVWAF
2023-02-11 10:00:19 +01:00
parent 09f2ea8938
commit a280d7f796
4 changed files with 15 additions and 19 deletions

View File

@@ -132,7 +132,7 @@ void MeshService::reloadOwner(bool shouldSave)
*/
void MeshService::handleToRadio(meshtastic_MeshPacket &p)
{
#ifdef ARCH_PORTDUINO
#if defined(ARCH_PORTDUINO) && !HAS_RADIO
// Simulates device is receiving a packet via the LoRa chip
if (p.decoded.portnum == meshtastic_PortNum_SIMULATOR_APP) {
// Simulator packet (=Compressed packet) is encapsulated in a MeshPacket, so need to unwrap first