mirror of
https://github.com/kemenril/iR-APRSISD.git
synced 2024-11-09 23:24:07 -08:00
Fixed problem where course/speed may not have been added in every case where it was available.
This commit is contained in:
parent
66f2a95580
commit
299cea7aff
|
@ -318,7 +318,7 @@ def sendAPRS(device, DevID, ARPreamble, tstamp, lat, long, alt, course, speed, c
|
|||
#In theory a course/speed of 000/000 sholdn't be much different
|
||||
# from not reporting one, but also in theory, more space is
|
||||
# available for a comment if we don't add the data extension.
|
||||
if speed and course:
|
||||
if (speed != None) and (course != None):
|
||||
aprsPacket = ''.join([aprsPacket,str(round(course)).zfill(3), '/', str(min(round(speed),999)).zfill(3)])
|
||||
#Same with altitude:
|
||||
if alt:
|
||||
|
|
Loading…
Reference in a new issue