summaryrefslogtreecommitdiff
path: root/Transceiver
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver')
-rwxr-xr-xTransceiver/DXLabSuiteCommanderTransceiver.cpp11
-rwxr-xr-xTransceiver/PollingTransceiver.cpp4
2 files changed, 9 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)
diff --git a/Transceiver/PollingTransceiver.cpp b/Transceiver/PollingTransceiver.cpp
index cb4c309d..6a0b8ffc 100755
--- a/Transceiver/PollingTransceiver.cpp
+++ b/Transceiver/PollingTransceiver.cpp
@@ -117,6 +117,10 @@ void PollingTransceiver::do_post_ptt (bool p)
retries_ = polls_to_stabilize;
//retries_ = 0; // fast feedback on PTT
}
+ else
+ {
+ next_state_.ptt(p); // ensure this is initialized
+ }
}
bool PollingTransceiver::do_pre_update ()