From 455b1baa67c62e827573fe5f84013ef661cfa2fc Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 9 Apr 2021 13:49:09 -0700 Subject: [PATCH] DVAP config --- QnetDVAP.cpp | 2 +- qnconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/QnetDVAP.cpp b/QnetDVAP.cpp index 39c2505..56fb925 100644 --- a/QnetDVAP.cpp +++ b/QnetDVAP.cpp @@ -173,7 +173,7 @@ bool CQnetDVAP::ReadConfig(const char *cfgFile) OWNER.resize(CALL_SIZE, ' '); cfg.GetValue(dvap_path+"_serial_number", type, MODULE_SERIAL_NUMBER, 0, 10); - cfg.GetValue(dvap_path+"_device", type, MODULE_DEVICE, 0, 16); + cfg.GetValue(dvap_path+"_device", type, MODULE_DEVICE, 0, 32); if (0==MODULE_DEVICE.size() && 0==MODULE_SERIAL_NUMBER.size()) { fprintf(stderr, "Either a device path or a serial number must be specifed for a DVAP\n"); diff --git a/qnconfig b/qnconfig index 44e3cb3..eced596 100755 --- a/qnconfig +++ b/qnconfig @@ -603,6 +603,7 @@ WriteCFGFile () { q=${p}_power; [ -z ${!q+x} ] || echo "${q}=${!q}" >> $outFile q=${p}_squelch; [ -z ${!q+x} ] || echo "${q}=${!q}" >> $outFile q=${p}_serial_number; [ -z ${!q+x} ] || echo "${q}='${!q}'" >> $outFile + q=${p}_device; [ -z ${!q+x} ] || echo "${q}='${!q}'" >> $outFile elif [[ "${!p}" == "dvrptr" ]]; then q=${p}_tx_frequency; [ -z ${!q+x} ] || echo "${q}=${!q}" >> $outFile q=${p}_rx_frequency; [ -z ${!q+x} ] || echo "${q}=${!q}" >> $outFile