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:
parent
1147db45a4
commit
4ebca98cdf
3 changed files with 19 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue