[chirp_devel] [PATCH 0 of 2] [px777] add - and space characters. Fixes #364
This was first submitted in Dec 2012 but somehow was never committed. It's updated now with more DRY and less test failure.
Tom KD7LXL
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1373870543 25200 # Node ID 3f3d39f2cd381abb010ffa9ea10c3181287521d0 # Parent 8a1ea9ddb05ae8e1ce19269fa9c9643578e61872 [px777] add - and space characters. Fixes #364
diff -r 8a1ea9ddb05a -r 3f3d39f2cd38 chirp/puxing.py --- a/chirp/puxing.py Tue Jul 09 22:13:52 2013 -0400 +++ b/chirp/puxing.py Sun Jul 14 23:42:23 2013 -0700 @@ -159,7 +159,7 @@ rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS"] rf.valid_modes = ["FM", "NFM"] rf.valid_power_levels = POWER_LEVELS - rf.valid_characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" + rf.valid_characters = ''.join(set(PUXING_CHARSET)) rf.valid_name_length = 6 rf.has_ctone = False rf.has_tuning_step = False
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1373870543 25200 # Node ID 5a5a53db1bb2d657af48e9fbc0c4425e8733cb7b # Parent 3f3d39f2cd381abb010ffa9ea10c3181287521d0 [px777] Fix tests failing on blank name. Related to #364
diff -r 3f3d39f2cd38 -r 5a5a53db1bb2 chirp/puxing.py --- a/chirp/puxing.py Sun Jul 14 23:42:23 2013 -0700 +++ b/chirp/puxing.py Sun Jul 14 23:42:23 2013 -0700 @@ -287,6 +287,7 @@ if i == 0xFF: break mem.name += PUXING_CHARSET[i] + mem.name = mem.name.rstrip()
return mem
participants (1)
-
Tom Hayward