Quickfixed compatibility with a new Qt version

This commit is contained in:
Markus Koch 2014-01-28 22:20:00 +01:00
parent 77818dde76
commit 0d4445e802
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ int main() //int argc, char *argv[]
if (command.count() != 2) help(&command);
else {
char buf[1];
int retVal = sendMessage(CMD_PING, command.at(1).at(0).toAscii(),0, buf);
int retVal = sendMessage(CMD_PING, command.at(1).at(0).unicode(),0, buf);
if (retVal > 0) {
buf[retVal] = 0;
cout << "PING returned (" << QString::number(retVal).toStdString().data() << "B): " << buf << endl;
@ -228,7 +228,7 @@ int main() //int argc, char *argv[]
// Ping dev to mke sure it's still alive
char buf[1];
int8_t retVal = sendMessage(CMD_PING, command.at(0).at(0).toAscii(),0, buf); // instead of creating a random number we use the first letter of our alst command
int8_t retVal = sendMessage(CMD_PING, command.at(0).at(0).unicode(),0, buf); // instead of creating a random number we use the first letter of our alst command
if (retVal <= 0) {
cout << "ERROR: LOST CONNECTION!" << endl;
exit = 1;