mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-24 11:40:31 -05:00
Unkey rig if program exits while transmitting.
This will not help if the program crashes, but at least graceful exits will not leave the rig in TX. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3984 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
2b966c14d1
commit
dbda79e7a2
@ -35,6 +35,10 @@ void TransceiverBase::start () noexcept
|
||||
{
|
||||
if (m_->state_.online ())
|
||||
{
|
||||
// ensure PTT isn't left set
|
||||
do_ptt (false);
|
||||
do_post_ptt (false);
|
||||
|
||||
do_stop ();
|
||||
do_post_stop ();
|
||||
m_->state_.online (false);
|
||||
@ -62,6 +66,13 @@ void TransceiverBase::stop () noexcept
|
||||
QString message;
|
||||
try
|
||||
{
|
||||
if (m_->state_.online ())
|
||||
{
|
||||
// ensure PTT isn't left set
|
||||
do_ptt (false);
|
||||
do_post_ptt (false);
|
||||
}
|
||||
|
||||
do_stop ();
|
||||
do_post_stop ();
|
||||
m_->state_.online (false);
|
||||
|
Loading…
Reference in New Issue
Block a user