mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 19:43:22 +00:00
skip ping watchdog commands if pwatchdog is not enabled
This commit is contained in:
parent
f68c6ac9f2
commit
9cc5519b7c
@ -1063,6 +1063,7 @@ void CMD_Init_Early() {
|
||||
//cmddetail:"fn":"CMD_SafeMode","file":"cmnds/cmd_main.c","requires":"",
|
||||
//cmddetail:"examples":""}
|
||||
CMD_RegisterCommand("SafeMode", CMD_SafeMode, NULL);
|
||||
#if ENABLE_PING_WATCHDOG
|
||||
//cmddetail:{"name":"PingInterval","args":"[IntegerSeconds]",
|
||||
//cmddetail:"descr":"Sets the interval between ping attempts for ping watchdog mechanism",
|
||||
//cmddetail:"fn":"CMD_PingInterval","file":"cmnds/cmd_main.c","requires":"",
|
||||
@ -1073,6 +1074,7 @@ void CMD_Init_Early() {
|
||||
//cmddetail:"fn":"CMD_PingHost","file":"cmnds/cmd_main.c","requires":"",
|
||||
//cmddetail:"examples":""}
|
||||
CMD_RegisterCommand("PingHost", CMD_PingHost, NULL);
|
||||
#endif
|
||||
//cmddetail:{"name":"StartupCommand","args":"[Command in quotation marks][bRunAfter]",
|
||||
//cmddetail:"descr":"Sets the new startup command (short startup command, the one stored in config) to given string. Second argument is optional, if set to 1, command will be also executed after setting",
|
||||
//cmddetail:"fn":"CMD_StartupCommand","file":"cmnds/cmd_main.c","requires":"",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user