From b258c3b92c6b4bf0e6fb0d5801d6117fcdfa8519 Mon Sep 17 00:00:00 2001 From: philmoz Date: Mon, 13 Mar 2023 21:02:19 +1100 Subject: [PATCH] fix(simu): `checkValidMCU` shouldn't be called when running simulator (#3347) Co-authored-by: Phil Mitchell --- radio/src/opentx.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index e8bc92a63..ce5d21f7b 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -142,6 +142,7 @@ static void readKeysAndTrims() void checkValidMCU(void) { +#if !defined(SIMU) // Checks the radio MCU type matches intended firmware type uint32_t idcode = DBGMCU->IDCODE & 0xFFF; @@ -159,6 +160,7 @@ void checkValidMCU(void) if(idcode != TARGET_IDCODE) { runFatalErrorScreen("Wrong MCU"); } +#endif } void per10ms()