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:
@@ -142,6 +142,7 @@ static void readKeysAndTrims()
|
|||||||
|
|
||||||
void checkValidMCU(void)
|
void checkValidMCU(void)
|
||||||
{
|
{
|
||||||
|
#if !defined(SIMU)
|
||||||
// Checks the radio MCU type matches intended firmware type
|
// Checks the radio MCU type matches intended firmware type
|
||||||
uint32_t idcode = DBGMCU->IDCODE & 0xFFF;
|
uint32_t idcode = DBGMCU->IDCODE & 0xFFF;
|
||||||
|
|
||||||
@@ -159,6 +160,7 @@ void checkValidMCU(void)
|
|||||||
if(idcode != TARGET_IDCODE) {
|
if(idcode != TARGET_IDCODE) {
|
||||||
runFatalErrorScreen("Wrong MCU");
|
runFatalErrorScreen("Wrong MCU");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void per10ms()
|
void per10ms()
|
||||||
|
|||||||
Reference in New Issue
Block a user