From b99cf6bfcc5f2aabe68b92f2fc21cc93c79777af Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 28 Jul 2017 13:42:38 +0000 Subject: [PATCH] Fix issue with selecting USB-DATA mode via HRD with some Icom rigs git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7966 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- HRDTransceiver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HRDTransceiver.cpp b/HRDTransceiver.cpp index 0dc40d6bb..54aab71a6 100644 --- a/HRDTransceiver.cpp +++ b/HRDTransceiver.cpp @@ -268,7 +268,11 @@ int HRDTransceiver::do_start () // Can't do this with ^Data$ as the button name because some Kenwood // rigs have a "Data" button which is for turning the DSP on and off - //data_mode_toggle_button_ = find_button (QRegExp ("^(Data)$")); + // so we must filter by rig name as well + if (current_radio_name.startsWith ("IC")) // works with Icom transceivers + { + data_mode_toggle_button_ = find_button (QRegExp ("^(Data)$")); + } data_mode_on_button_ = find_button (QRegExp ("^(DATA-ON\\(mid\\))$")); data_mode_off_button_ = find_button (QRegExp ("^(DATA-OFF)$"));