--- trunk/FlisServer/FlisServerDlg.cpp 2007/12/03 14:13:20 136 +++ trunk/FlisServer/FlisServerDlg.cpp 2007/12/03 14:40:44 138 @@ -345,7 +345,7 @@ if(Serial.getComstat().cbInQue > 0) { std::vector answer = readFrame(); - //Sleep(50); + Sleep(50); for (int i=0; im_strError); + } AppendText("Sms added to Log"); Sleep(150); } @@ -510,11 +516,11 @@ } - if(tekst == "OK") + if(tekst.MakeLower() == "ok") { AppendText("OK tekst modtaget"); } - else if (tekst == "error") + else if (tekst.MakeLower() == "error") { CString send; send.Append("error tekst"); @@ -524,7 +530,7 @@ } else if (plus == true) { - if (command == "cmti") + if (command.MakeLower() == "cmti") { CString smscount, oldteskst; int pos = tekst.Find(',',0); @@ -562,7 +568,7 @@ ResetSms++; } - else if(command == "wind") + else if(command.MakeLower() == "wind") { CString send; @@ -600,18 +606,16 @@ sIDnr = data[i].IDnr; sCommandID = data[i].CommandID; commandtest = atoi(data[i].CommandID); + sInstallationsID = "0"; if(commandtest > 1) { sInstallationsID = data[i].InstallationsID; } } - sIDnr = Splitter(testdata); - sCommandID = Splitter(testdata); - sInstallationsID = "0"; + if (commandtest > 1) { - sInstallationsID = Splitter(testdata); iAll = 0; }