mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-03 02:26:45 -04: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
3ddf0d64d3
commit
6e232c85f1
@ -35,6 +35,10 @@ void TransceiverBase::start () noexcept
|
|||||||
{
|
{
|
||||||
if (m_->state_.online ())
|
if (m_->state_.online ())
|
||||||
{
|
{
|
||||||
|
// ensure PTT isn't left set
|
||||||
|
do_ptt (false);
|
||||||
|
do_post_ptt (false);
|
||||||
|
|
||||||
do_stop ();
|
do_stop ();
|
||||||
do_post_stop ();
|
do_post_stop ();
|
||||||
m_->state_.online (false);
|
m_->state_.online (false);
|
||||||
@ -62,6 +66,13 @@ void TransceiverBase::stop () noexcept
|
|||||||
QString message;
|
QString message;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (m_->state_.online ())
|
||||||
|
{
|
||||||
|
// ensure PTT isn't left set
|
||||||
|
do_ptt (false);
|
||||||
|
do_post_ptt (false);
|
||||||
|
}
|
||||||
|
|
||||||
do_stop ();
|
do_stop ();
|
||||||
do_post_stop ();
|
do_post_stop ();
|
||||||
m_->state_.online (false);
|
m_->state_.online (false);
|
||||||
|
Loading…
Reference in New Issue
Block a user