From b53dcb932e597e847d5bf786b100de74b63d7cc9 Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Sat, 1 Oct 2022 17:01:25 +0200 Subject: [PATCH] Adapt conditional include --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 08d021ac5..3430cb129 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,8 +45,8 @@ #include "RF95Interface.h" #include "SX1262Interface.h" #include "SX1268Interface.h" -#if !HAS_RADIO -#include "SimRadio.h" +#if !HAS_RADIO && defined(ARCH_PORTDUINO) +#include "platform/portduino/SimRadio.h" #endif #if HAS_BUTTON @@ -388,7 +388,7 @@ void setup() } #endif -#if !HAS_RADIO +#ifdef ARCH_PORTDUINO if (!rIf) { rIf = new SimRadio; if (!rIf->init()) {