From 0d4445e80283d0e1012fdc24fc87d66e10592a46 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Tue, 28 Jan 2014 22:20:00 +0100 Subject: [PATCH] Quickfixed compatibility with a new Qt version --- Driver/prgKbd_debug/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Driver/prgKbd_debug/main.cpp b/Driver/prgKbd_debug/main.cpp index 0967744..9e07e90 100644 --- a/Driver/prgKbd_debug/main.cpp +++ b/Driver/prgKbd_debug/main.cpp @@ -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;