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
This commit is contained in:
Bill Somerville 2017-07-28 13:42:38 +00:00
parent dc144bc0fb
commit b99cf6bfcc

View File

@ -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)$"));