Allow for remote CAT with local hardware PTT

This commit is contained in:
Bill Somerville 2020-06-01 14:40:56 +01:00
parent 0c0d71c0a7
commit 366edf01ee
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -374,9 +374,11 @@ HamlibTransceiver::HamlibTransceiver (int model_number, TransceiverFactory::Para
case TransceiverFactory::PTT_method_DTR:
case TransceiverFactory::PTT_method_RTS:
if (!params.ptt_port.isEmpty ()
if (params.ptt_port.size ()
&& params.ptt_port != "None"
&& (is_dummy_ || params.ptt_port != params.serial_port))
&& (is_dummy_
|| RIG_PORT_SERIAL != rig_->caps->port_type
|| params.ptt_port != params.serial_port))
{
#if defined (WIN32)
set_conf ("ptt_pathname", ("\\\\.\\" + params.ptt_port).toLatin1 ().data ());