[chirp_devel] IC2730 Patch for Issue #8159
Rick (AA0RD) DeWitt
Thu Aug 6 11:21:29 PDT 2020
Patch file attached. Img and manifest are unchanged.
--
Rick DeWitt
AA0RD
Sequim, Washington, USA 98382
(360) 681-3494
-------------- next part --------------
# HG changeset patch
# User Rick DeWitt <aa0rd at yahoo.com>
# Date 1596737738 25200
# Thu Aug 06 11:15:38 2020 -0700
# Node ID 8efb609660bca272289414bd6b03243961c42142
# Parent 37a6a6d6f42535562669c8d3fc4e3765a218aa2d
[ic2730] Fix for issue #8159; reversed E/F DTMF codes
diff -r 37a6a6d6f425 -r 8efb609660bc chirp/drivers/ic2730.py
--- a/chirp/drivers/ic2730.py Fri Jul 17 20:17:29 2020 -0700
+++ b/chirp/drivers/ic2730.py Thu Aug 06 11:15:38 2020 -0700
@@ -1,5 +1,6 @@
# Copyright 2018 Rhett Robinson <rrhett at gmail.com>
# Added Settings support, 6/2019 Rick DeWitt <aa0rd at yahoo.com>
+# 7/2020: Fixed reversed E:* / F:# DTMF codes Issue #8159
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -528,11 +529,11 @@
"""Convert u8 DTMF array to a string: NOT a callback."""
stx = ""
for i in range(0, 24): # unpack up to ff
- if codestr[i] != 0xff:
+ if codestr[i] != 0xff: # Issue 8159 fix
if codestr[i] == 0x0E:
+ stx += "*"
+ elif codestr[i] == 0x0F:
stx += "#"
- elif codestr[i] == 0x0F:
- stx += "*"
else:
stx += format(int(codestr[i]), '0X')
return stx
@@ -550,10 +551,10 @@
if stx[j] in DTMF_CHARS:
sty += stx[j]
for j in range(0, 24):
- if j < len(sty):
- if sty[j] == "#":
+ if j < len(sty): # Issue 8159 fix
+ if sty[j] == "*":
chrv = 0xE
- elif sty[j] == "*":
+ elif sty[j] == "#":
chrv = 0xF
else:
chrv = int(sty[j], 16)
More information about the chirp_devel
mailing list