From 232db9cb367b896d24b5c779a9f67a6faeebea4a Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 17 Dec 2020 16:01:52 +0100 Subject: [PATCH] changeDevie --- cube/User/Src/configCmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/User/Src/configCmds.c b/cube/User/Src/configCmds.c index e6217d2..2f93bee 100644 --- a/cube/User/Src/configCmds.c +++ b/cube/User/Src/configCmds.c @@ -226,7 +226,7 @@ static bool addDeviceCmd(uint8_t argc, char **args) { } static bool changeDeviceCmd(uint8_t argc, char **args) { - if (strcmp(args[1], "help")) { + if (strcmp(args[1], "help") == 0) { sendString("First argument: index of device in list\n\r"); sendFormatString("Between 0 and %d\n\r", getConfig()->numOfDeviceBlocks); sendString("For further arguments use a * to keep the value\n\r");