fix(simu): checkValidMCU shouldn't be called when running simulator (#3347)

Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
This commit is contained in:
philmoz
2023-03-13 20:02:19 +10:00
committed by GitHub
co-authored by Phil Mitchell
parent 16a7f0498d
commit b258c3b92c
+2
View File
@@ -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()