From d4dcc11a16d500f1352c1c753fe90b39687873f7 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 21 Jan 2017 12:16:16 +0000 Subject: [PATCH] Track rig mode I can't remember exactly why mode tracking was disabled but it doesn't seem to be necessary to do so. I am expecting some fallout from this change, when I discover why it was necessary to ignore the rig mode I will find a better way to do this. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7548 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- Configuration.cpp | 1 + TransceiverBase.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Configuration.cpp b/Configuration.cpp index 5674a1b81..9527c2372 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -2327,6 +2327,7 @@ void Configuration::impl::handle_transceiver_update (TransceiverState const& sta // only follow rig on some information, ignore other stuff cached_rig_state_.online (state.online ()); cached_rig_state_.frequency (state.frequency ()); + cached_rig_state_.mode (state.mode ()); cached_rig_state_.split (state.split ()); if (state.online ()) diff --git a/TransceiverBase.cpp b/TransceiverBase.cpp index ed2868739..7e2483652 100644 --- a/TransceiverBase.cpp +++ b/TransceiverBase.cpp @@ -209,6 +209,7 @@ void TransceiverBase::update_split (bool state) void TransceiverBase::update_mode (MODE m) { actual_.mode (m); + requested_.mode (m); // track rig changes } void TransceiverBase::update_PTT (bool state)