committed by
Andre Bernet
parent
39c5d65f76
commit
7b12c99a0b
@@ -507,9 +507,21 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state == ST_REBOOT) {
|
if (state == ST_REBOOT) {
|
||||||
// Jump to proper application address
|
|
||||||
lcdClear();
|
lcdClear();
|
||||||
|
lcdRefresh();
|
||||||
|
lcdRefreshWait();
|
||||||
|
|
||||||
|
#if !defined(EEPROM)
|
||||||
|
// Use jump on radios with emergency mode
|
||||||
|
// to avoid triggering it with a soft reset
|
||||||
|
|
||||||
|
// Jump to proper application address
|
||||||
jumpTo(APP_START_ADDRESS);
|
jumpTo(APP_START_ADDRESS);
|
||||||
|
#else
|
||||||
|
// Use software reset everywhere else
|
||||||
|
NVIC_SystemReset();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user