skip ping watchdog commands if pwatchdog is not enabled

This commit is contained in:
Tester23 2025-09-06 11:01:51 +02:00
parent f68c6ac9f2
commit 9cc5519b7c

View File

@ -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":"",