[chirp_devel] IC2730 Issue #7031 patch

Rick DeWitt AA0RD
Tue Sep 3 06:24:51 PDT 2019


Patch for issue #7031 to fix corrupted bank index values after download 
from IC-2730A. Possible cause of the bad values is use of an audio 
extension cable with the standard USB cable.

-- 
Rick DeWitt
AA0RD
Sequim, Washington, USA 98382
(360) 681-3494

-------------- next part --------------
# HG changeset patch
# User Rick DeWitt <aa0rd at yahoo.com>
# Date 1567516504 25200
#      Tue Sep 03 06:15:04 2019 -0700
# Node ID 71eca0d98e427192ffb9702062977c08f47e0a89
# Parent  32bc21dadb60e762e4551468c44e7cf539edc32d
[ic2730] Fix for corrupted bank index, fixes issue #7031
Apply a low-order mask in _get_bank module. Issue #7031

diff -r 32bc21dadb60 -r 71eca0d98e42 chirp/drivers/ic2730.py
--- a/chirp/drivers/ic2730.py	Tue Aug 27 18:37:56 2019 -0700
+++ b/chirp/drivers/ic2730.py	Tue Sep 03 06:15:04 2019 -0700
@@ -312,6 +312,7 @@
 
     def _get_bank(self, loc):
         _bank = self._memobj.bank_info[loc]
+        _bank.bank = _bank.bank & 0x1F      # Bad index filter, fix issue #7031
         if _bank.bank == 0x1F:
             return None
         else:


More information about the chirp_devel mailing list