mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 11:31:51 -05:00
Fail gracefully if network rig connection not established
This commit is contained in:
parent
9d31ec843e
commit
c0a5bad58a
@ -385,7 +385,7 @@ auto DXLabSuiteCommanderTransceiver::get_mode () -> MODE
|
||||
|
||||
void DXLabSuiteCommanderTransceiver::simple_command (QString const& cmd)
|
||||
{
|
||||
Q_ASSERT (commander_);
|
||||
if (!commander_) return;
|
||||
|
||||
CAT_TRACE (cmd);
|
||||
|
||||
@ -398,7 +398,7 @@ void DXLabSuiteCommanderTransceiver::simple_command (QString const& cmd)
|
||||
|
||||
QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd)
|
||||
{
|
||||
Q_ASSERT (commander_);
|
||||
if (!commander_) return QString {};
|
||||
|
||||
if (!write_to_port (cmd))
|
||||
{
|
||||
|
@ -1005,7 +1005,7 @@ void HRDTransceiver::do_poll ()
|
||||
|
||||
QString HRDTransceiver::send_command (QString const& cmd, bool prepend_context, bool recurse)
|
||||
{
|
||||
Q_ASSERT (hrd_);
|
||||
if (!hrd_) return QString {};
|
||||
|
||||
QString result;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user