When trying to print to console via print.py with GPS enabled, there is no GPS output, no '=' delimiter line between readings, and in the airpi.log file I see the following:
2016-09-25 17:01:05,689 - __main__ - DEBUG - ERROR: Exception during output: Unknown format code 'f' for object of type 'str'
The breakage seems to have happened In the commit by Haydn Williams on Oct 15, 2014 - Lots of pylint improvements.
This part of the commit in format_output_gps() broke GPS output:
Note that value is passed in as an argument then immediately overwritten and assigned a value that is a string. When it is then appended to, the attempt to format what is now a string as a float causes the exception.
GPS output works by just changing back with an ljust(18) to match the other outputs:
When trying to print to console via
print.py
with GPS enabled, there is no GPS output, no '=' delimiter line between readings, and in theairpi.log
file I see the following:The breakage seems to have happened In the commit by Haydn Williams on Oct 15, 2014 - Lots of pylint improvements.
This part of the commit in
format_output_gps()
broke GPS output:Note that
value
is passed in as an argument then immediately overwritten and assigned a value that is a string. When it is then appended to, the attempt to format what is now a string as a float causes the exception.GPS output works by just changing back with an
ljust(18)
to match the other outputs: