[chirp_devel] Bug # 9025 Icomciv
Rick (AA0RD) DeWitt
Wed Apr 28 08:00:11 PDT 2021
Patch for # 9025 for icomciv.py. Fixes mem.duplex setting error when no
duplex attribute exists.
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20210428/c4c9d655/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Signature-RIck-AA0RD-Image.jpg
Type: image/jpeg
Size: 18469 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20210428/c4c9d655/attachment-0001.jpg
-------------- next part --------------
# HG changeset patch
# User Rick DeWitt <aa0rd at yahoo.com>
# Date 1619621434 25200
# Wed Apr 28 07:50:34 2021 -0700
# Node ID b04ba05b7b646e144af4f074663941ca122dc4ed
# Parent 42f91f6eac5cb52122b59971a2faf13eea3dfe30
[icomciv.py] Fix mem.duplex setting when no duplex attribute. #9025
diff -r 42f91f6eac5c -r b04ba05b7b64 chirp/drivers/icomciv.py
--- a/chirp/drivers/icomciv.py Tue Apr 27 15:23:46 2021 -0700
+++ b/chirp/drivers/icomciv.py Wed Apr 28 07:50:34 2021 -0700
@@ -1,4 +1,4 @@
-# Latest update: March, 2021 RJ DeWitt added IC-7300
+# Latest update: April, 2021 Add hasattr test at line 564
import struct
import logging
from chirp.drivers import icf
@@ -561,7 +561,8 @@
mem.duplex = self._rf.valid_duplexes[memobj.duplex]
if self._rf.can_odd_split and memobj.spl:
- mem.duplex = "split"
+ if hasattr(memobj, "duplex"):
+ mem.duplex = "split"
mem.offset = int(memobj.freq_tx)
mem.immutable = []
elif hasattr(memobj, "duplexOffset"):
More information about the chirp_devel
mailing list