mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-21 06:38:19 +01:00
fix POWER only checking status
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user