diff options
| author | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:45 +0200 |
| commit | 2633e05ff7d54e94d5e21877dcd6469140b9e0c9 (patch) | |
| tree | 40503c993f9cd433b4f48baac1d9b100d76de541 /Transceiver/OmniRigTransceiver.cpp | |
| parent | 5729bccd1e0b5c99d992b694bc203a977aeb386b (diff) | |
| parent | 5c05cfa3903d8a71d77f4b3dc1d2d0c7a043c6d6 (diff) | |
Update upstream source from tag 'upstream/2.2.0+repack'
Update to upstream version '2.2.0+repack'
with Debian dir 420018967e31760c7822abd007c7e2084c580e1b
Diffstat (limited to 'Transceiver/OmniRigTransceiver.cpp')
| -rw-r--r-- | Transceiver/OmniRigTransceiver.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Transceiver/OmniRigTransceiver.cpp b/Transceiver/OmniRigTransceiver.cpp index 48219ecd..62c34ebf 100644 --- a/Transceiver/OmniRigTransceiver.cpp +++ b/Transceiver/OmniRigTransceiver.cpp @@ -162,6 +162,9 @@ int OmniRigTransceiver::do_start () Q_ASSERT (rig_); Q_ASSERT (!rig_->isNull ()); + // COM/OLE exceptions get signaled + connect (&*rig_, SIGNAL (exception (int, QString, QString, QString)), this, SLOT (handle_COM_exception (int, QString, QString, QString))); + offline_timer_.reset (new QTimer); // instantiate here as // constructor runs in wrong // thread @@ -175,12 +178,17 @@ int OmniRigTransceiver::do_start () Q_ASSERT (port_); Q_ASSERT (!port_->isNull ()); + + // COM/OLE exceptions get signaled + connect (&*port_, SIGNAL (exception (int, QString, QString, QString)), this, SLOT (handle_COM_exception (int, QString, QString, QString))); + TRACE_CAT ("OmniRigTransceiver", "OmniRig RTS state:" << port_->Rts ()); - if (!port_->Lock ()) // try to take exclusive use of the OmniRig serial port for PTT - { - TRACE_CAT ("OmniRigTransceiver", "Failed to get exclusive use of serial port for PTT from OmniRig"); - } + // remove locking because it doesn't seem to work properly + // if (!port_->Lock ()) // try to take exclusive use of the OmniRig serial port for PTT + // { + // TRACE_CAT ("OmniRigTransceiver", "Failed to get exclusive use of serial port for PTT from OmniRig"); + // } // start off so we don't accidentally key the radio if (TransceiverFactory::PTT_method_DTR == ptt_type_) @@ -314,9 +322,9 @@ void OmniRigTransceiver::do_stop () // destructor as destructor runs in // wrong thread - if (port_) + if (port_ && !port_->isNull ()) { - port_->Unlock (); // release serial port + // port_->Unlock (); // release serial port port_->clear (); port_.reset (); } |
