[chirp_devel] [PATCH] ap510: cast values added to the mmap to strings, as the radio expects. #2095
Tom Hayward
Sun Dec 14 15:46:14 PST 2014
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1418600710 28800
# Sun Dec 14 15:45:10 2014 -0800
# Node ID b67507019c2b8d7fa250c624eb72e04ef112904c
# Parent b81f4667efb09bca1cbcbe2e063986d63191b863
ap510: cast values added to the mmap to strings, as the radio expects. #2095
diff -r b81f4667efb0 -r b67507019c2b chirp/ap510.py
--- a/chirp/ap510.py Tue Dec 09 14:43:41 2014 -0800
+++ b/chirp/ap510.py Sun Dec 14 15:45:10 2014 -0800
@@ -192,7 +192,7 @@
if name.startswith('_'):
super(AP510Memory, self).__setattr__(name, value)
return
- self._memobj[self.ATTR_MAP[name]] = value
+ self._memobj[self.ATTR_MAP[name]] = str(value)
PTT_DELAY = ['60 ms', '120 ms', '180 ms', '300 ms', '480 ms',
More information about the chirp_devel
mailing list