16 Dec
2012
16 Dec
'12
5:02 p.m.
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1355706045 28800 # Node ID 2fe6ec6bf7bc5add754476e9dfd4eea5aec6d5da # Parent 49c2ca133e8652aa17cdf8d79ce3717009803892 [px777] fix no-tone identifier. Fixes #363
diff -r 49c2ca133e86 -r 2fe6ec6bf7bc chirp/puxing.py --- a/chirp/puxing.py Fri Nov 16 16:02:11 2012 -0800 +++ b/chirp/puxing.py Sun Dec 16 17:00:45 2012 -0800 @@ -204,7 +204,7 @@ return True
def _is_no_tone(field): - return field[0].get_raw() == "\xFF" + return field[0].get_raw() in ["\x00", "\xFF"]
def _get_dtcs(value): # Upper nibble 0x80 -> DCS, 0xC0 -> Inv. DCS