mirror of
https://bitbucket.org/C_Classic/prgkbd.git
synced 2024-11-22 10:15:06 +01:00
Quickfixed compatibility with a new Qt version
This commit is contained in:
parent
77818dde76
commit
0d4445e802
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user