fix POWER only checking status

This commit is contained in:
openshwprojects
2022-07-31 01:14:40 +02:00
parent b35e59056d
commit de96d70da5

View File

@@ -52,7 +52,9 @@ static int power(const void *context, const char *cmd, const char *args, int cmd
return 1;
}
#endif
if(!stricmp(args,"TOGGLE")) {
if(args == 0 || *args == 0) {
// this should only check status
} else if(!stricmp(args,"TOGGLE")) {
CHANNEL_Toggle(channel);
} else {
iVal = parsePowerArgument(args);