[chirp_devel] [PATCH] [px777] fix no-tone identifier. Fixes #363
Tom Hayward
Fri Dec 28 14:30:18 PST 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1356733619 28800
# Node ID 54eeec36d292bff0f8ca298fc26e7735d9d9652a
# Parent 37b042d567412f3abdceea513a39e13aef344caa
[px777] fix no-tone identifier. Fixes #363
diff -r 37b042d56741 -r 54eeec36d292 chirp/puxing.py
--- a/chirp/puxing.py Fri Dec 28 07:58:20 2012 -0800
+++ b/chirp/puxing.py Fri Dec 28 14:26:59 2012 -0800
@@ -204,7 +204,7 @@
return True
def _is_no_tone(field):
- return field[0].get_raw() == "\xFF"
+ return int(field) in [0, 16665]
def _get_dtcs(value):
# Upper nibble 0x80 -> DCS, 0xC0 -> Inv. DCS
More information about the chirp_devel
mailing list