[chirp_devel] [PATCH 2 of 2] [px777] fix no-tone identifier. Fixes #363

Tom Hayward
Fri Dec 28 21:30:23 PST 2012


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1356758964 28800
# Node ID 957f49b619ea3cbfbb64b0c62c53d33e3778d6fb
# Parent  56749d29e5506922a6a9e930f76438c74be6ed66
[px777] fix no-tone identifier. Fixes #363

diff -r 56749d29e550 -r 957f49b619ea chirp/puxing.py
--- a/chirp/puxing.py	Fri Dec 28 21:23:39 2012 -0800
+++ b/chirp/puxing.py	Fri Dec 28 21:29:24 2012 -0800
@@ -204,7 +204,7 @@
             return True
 
         def _is_no_tone(field):
-            return field[0].get_raw() == "\xFF"
+            return field.get_raw() in ["\x00\x00", "\xFF\xFF"]
 
         def _get_dtcs(value):
             # Upper nibble 0x80 -> DCS, 0xC0 -> Inv. DCS



More information about the chirp_devel mailing list