From ec81f90ec3a65d1183dc50c4c47405e3f43e1cb1 Mon Sep 17 00:00:00 2001 From: d18c7db Date: Thu, 22 Oct 2009 20:21:12 +0000 Subject: [PATCH] replaced strncasecmp with strcmp to get rid of compile errors --- winsrc/command.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/winsrc/command.cpp b/winsrc/command.cpp index b2258640..e94c234c 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -2841,13 +2841,13 @@ static void CmdSetMux(char *str) { UsbCommand c; c.cmd = CMD_SET_ADC_MUX; - if(strncasecmp(str, "lopkd", 5) == 0) { + if(strcmp(str, "lopkd") == 0) { c.ext1 = 0; - } else if(strncasecmp(str, "loraw", 5) == 0) { + } else if(strcmp(str, "loraw") == 0) { c.ext1 = 1; - } else if(strncasecmp(str, "hipkd", 5) == 0) { + } else if(strcmp(str, "hipkd") == 0) { c.ext1 = 2; - } else if(strncasecmp(str, "hiraw", 5) == 0) { + } else if(strcmp(str, "hiraw") == 0) { c.ext1 = 3; } SendCommand(&c, FALSE); -- 2.39.2