[chirp_devel] [PATCH] [ft1d] cleanse unprintable characters from the aprs messages

Angus Ainslie
Wed May 27 19:00:19 PDT 2015


Hi Marco,

Sorry hadn't seen your patch.

Angus

On 2015-05-27 00:13, Marco Filippi wrote:
> Hi Angus,
>  this duplicate and collide with my last patch which fix #2509.
> 
> 73 de IZ3GME Marco
> Il 27/mag/2015 05:28, "Angus Ainslie" <angus at akkea.ca> ha scritto:
> 
>> # HG changeset patch
>> # User Angus Ainslie <angus at akkea.ca>
>> # Date 1432697154 21600
>> #      Tue May 26 21:25:54 2015 -0600
>> # Node ID a01c70d3e9905f64d44160e6367acb55be26498c
>> # Parent  1540030fc327c5b56967a208496b16081715fa98
>> [ft1d] cleanse unprintable characters from the aprs messages
>> 
>> diff -r 1540030fc327 -r a01c70d3e990 chirp/drivers/ft1d.py
>> --- a/chirp/drivers/ft1d.py     Tue May 26 17:19:17 2015 -0600
>> +++ b/chirp/drivers/ft1d.py     Tue May 26 21:25:54 2015 -0600
>> @@ -973,8 +973,13 @@
>>                      "Dst Callsign %d" % index, val)
>>                  menu.append(rs)
>> 
>> +                body =
>> str(aprs_msg[index].path_and_body).rstrip("xFF")
>> +                checksum = body[-2:]
>> +                body = ''.join(s for s in body[:-2]
>> +                               if s in
>> string.printable).translate(
>> +                                   None,
>> "x09x0ax0bx0cx0d")
>>                  val = RadioSettingValueString(
>> -                    0, 66,
>> str(aprs_msg[index].path_and_body).rstrip("xFF"))
>> +                    0, 66, str(body))
>>                  rs = RadioSetting(
>>                      "aprs_msg.path_and_body%d" % index,
>> "Body", val)
>>                  menu.append(rs)
>> _______________________________________________
>> chirp_devel mailing list
>> chirp_devel at intrepid.danplanet.com
>> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel [1]
>> Developer docs:
>> http://chirp.danplanet.com/projects/chirp/wiki/Developers [2]
> 
> 
> Links:
> ------
> [1] http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> [2] http://chirp.danplanet.com/projects/chirp/wiki/Developers
> 
> _______________________________________________
> chirp_devel mailing list
> chirp_devel at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> Developer docs: 
> http://chirp.danplanet.com/projects/chirp/wiki/Developers



More information about the chirp_devel mailing list