diff options
| author | Christoph Berg <myon@debian.org> | 2022-12-04 22:15:46 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-12-04 22:15:46 +0100 |
| commit | 720f65addc6e7039817074330332b1a2b3110dc3 (patch) | |
| tree | 23e67126ac6495e4fc0cb6c59f845f98468ae1b2 /Transceiver/DXLabSuiteCommanderTransceiver.cpp | |
| parent | 7fade58d254e231b623febf3d303c108cd03e805 (diff) | |
| parent | fa73b3f50ec6ead52c3371a96f62bc6e666a9ee5 (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc5+repack'
Update to upstream version '2.6.0~rc5+repack'
with Debian dir e1472b5b51a5aa5dbb8c6e570a987179dd626bfc
Diffstat (limited to 'Transceiver/DXLabSuiteCommanderTransceiver.cpp')
| -rwxr-xr-x | Transceiver/DXLabSuiteCommanderTransceiver.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Transceiver/DXLabSuiteCommanderTransceiver.cpp b/Transceiver/DXLabSuiteCommanderTransceiver.cpp index 9925506a..22fe7bc0 100755 --- a/Transceiver/DXLabSuiteCommanderTransceiver.cpp +++ b/Transceiver/DXLabSuiteCommanderTransceiver.cpp @@ -437,15 +437,14 @@ QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd) };
}
- auto result = commander_->readAll ();
- // qDebug () << "result: " << result;
- // for (int i = 0; i < result.size (); ++i)
- // {
- // qDebug () << i << ":" << hex << int (result[i]);
- // }
+ QString result = commander_->readAll ();
+ if (result != NULL)
+ {
CAT_TRACE (cmd << " -> " << QString {result});
return result; // converting raw UTF-8 bytes to QString
+ }
+ return "";
}
bool DXLabSuiteCommanderTransceiver::write_to_port (QString const& s)
|
