# HG changeset patch # User Dan Drogichen # Date 1397100612 25200 # Wed Apr 09 20:30:12 2014 -0700 # Node ID 1cc897a1d161f87ba1afc07110fa563ff69ab750 # Parent c5cf3c72377a8dc151d06f08a23a22ec800971cf [FT-60] Chirp should check parity on download - Fixes 1547 diff -r c5cf3c72377a -r 1cc897a1d161 chirp/ft60.py --- a/chirp/ft60.py Thu Apr 03 16:54:50 2014 +0200 +++ b/chirp/ft60.py Wed Apr 09 20:30:12 2014 -0700 @@ -219,6 +219,9 @@ except Exception, e: raise errors.RadioError("Failed to communicate with radio: %s" % e) self.process_mmap() + # Uncomment to simulate a parity error to observe behavior: + #self._memobj.checksum = (self._memobj.checksum + 1) % 256 + self.check_checksums() def sync_out(self): self.update_checksums()