From 366edf01ee6763aeae58d6b110716e0538c520e8 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 1 Jun 2020 14:40:56 +0100 Subject: [PATCH] Allow for remote CAT with local hardware PTT --- Transceiver/HamlibTransceiver.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Transceiver/HamlibTransceiver.cpp b/Transceiver/HamlibTransceiver.cpp index dd468eb82..cf76032d6 100644 --- a/Transceiver/HamlibTransceiver.cpp +++ b/Transceiver/HamlibTransceiver.cpp @@ -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 ());