1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-17 21:35:27 +03:00

Re #3340: Watchdog still disabled on Horus, but use -DWATCHDOG_DISABLED=OFF to enable it. Radio currently resets if WDT is enabled, because external module functions are not yet implemented. After the radio is stable default for WATCHDOG_DISABLED will be set to OFF

This commit is contained in:
Damjan Adamic 2016-03-07 20:09:25 +01:00
parent 1147db45a4
commit 4ebca98cdf
3 changed files with 19 additions and 3 deletions

View file

@ -272,7 +272,13 @@ int cliMemoryInfo(const char ** argv)
int cliReboot(const char ** argv)
{
#if !defined(SIMU)
NVIC_SystemReset();
if (!strcmp(argv[1], "wdt")) {
// do a user requested watchdog test by pausing mixer thread
pausePulses();
}
else {
NVIC_SystemReset();
}
#endif
return 0;
}