diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-05 13:21:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-05 13:22:05 +0100 |
commit | 6da6fdaea31dd7b774c72f1b9dded06509d8f1de (patch) | |
tree | e5aaca988c221ed24c6f3a626a8b4129cec4138b /tracker-hatire/thread.cpp | |
parent | 395d606ab74c25e3c107e59a6b0933de9bf79d20 (diff) |
fix build
Diffstat (limited to 'tracker-hatire/thread.cpp')
-rw-r--r-- | tracker-hatire/thread.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp index 4f5feae5..f3c3f15c 100644 --- a/tracker-hatire/thread.cpp +++ b/tracker-hatire/thread.cpp @@ -24,7 +24,7 @@ void hatire_thread::sendcmd_impl(const QByteArray &cmd) Log(logMess); com_port.write(cmd); if (!com_port.waitForBytesWritten(1000)) { - emit serial_debug_info("TimeOut in writing CMD"); + emit serial_debug_info_str(tr("Timeout during writing command")); } else { Msg.append("\r\n"); @@ -42,7 +42,7 @@ void hatire_thread::sendcmd_impl(const QByteArray &cmd) emit serial_debug_info(Msg); #endif } else { - emit serial_debug_info("ComPort not open") ; + emit serial_debug_info_str(tr("COM port not open")); } } #endif @@ -145,6 +145,11 @@ void hatire_thread::run() #endif } +void hatire_thread::serial_debug_info_str(const QString& str) +{ + serial_debug_info(str.toUtf8()); +} + serial_result hatire_thread::init_serial_port_impl() { #ifndef HATIRE_DEBUG_LOGFILE |