mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04: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)
|
void DXLabSuiteCommanderTransceiver::simple_command (QString const& cmd)
|
||||||
{
|
{
|
||||||
Q_ASSERT (commander_);
|
if (!commander_) return;
|
||||||
|
|
||||||
CAT_TRACE (cmd);
|
CAT_TRACE (cmd);
|
||||||
|
|
||||||
@ -398,7 +398,7 @@ void DXLabSuiteCommanderTransceiver::simple_command (QString const& cmd)
|
|||||||
|
|
||||||
QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd)
|
QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd)
|
||||||
{
|
{
|
||||||
Q_ASSERT (commander_);
|
if (!commander_) return QString {};
|
||||||
|
|
||||||
if (!write_to_port (cmd))
|
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)
|
QString HRDTransceiver::send_command (QString const& cmd, bool prepend_context, bool recurse)
|
||||||
{
|
{
|
||||||
Q_ASSERT (hrd_);
|
if (!hrd_) return QString {};
|
||||||
|
|
||||||
QString result;
|
QString result;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user