<p dir="ltr">Hi Angus,<br>
this duplicate and collide with my last patch which fix #2509.</p>
<p dir="ltr">73 de IZ3GME Marco</p>
<div class="gmail_quote">Il 27/mag/2015 05:28, "Angus Ainslie" <<a href="mailto:angus@akkea.ca">angus@akkea.ca</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Angus Ainslie <<a href="mailto:angus@akkea.ca">angus@akkea.ca</a>><br>
# Date 1432697154 21600<br>
# Tue May 26 21:25:54 2015 -0600<br>
# Node ID a01c70d3e9905f64d44160e6367acb55be26498c<br>
# Parent 1540030fc327c5b56967a208496b16081715fa98<br>
[ft1d] cleanse unprintable characters from the aprs messages<br>
<br>
diff -r 1540030fc327 -r a01c70d3e990 chirp/drivers/ft1d.py<br>
--- a/chirp/drivers/ft1d.py Tue May 26 17:19:17 2015 -0600<br>
+++ b/chirp/drivers/ft1d.py Tue May 26 21:25:54 2015 -0600<br>
@@ -973,8 +973,13 @@<br>
"Dst Callsign %d" % index, val)<br>
menu.append(rs)<br>
<br>
+ body = str(aprs_msg[index].path_and_body).rstrip("\xFF")<br>
+ checksum = body[-2:]<br>
+ body = ''.join(s for s in body[:-2]<br>
+ if s in string.printable).translate(<br>
+ None, "\x09\x0a\x0b\x0c\x0d")<br>
val = RadioSettingValueString(<br>
- 0, 66, str(aprs_msg[index].path_and_body).rstrip("\xFF"))<br>
+ 0, 66, str(body))<br>
rs = RadioSetting(<br>
"aprs_msg.path_and_body%d" % index, "Body", val)<br>
menu.append(rs)<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</blockquote></div>