Skip to content

Commit

Permalink
Updated reconnect comment and BASE91 comment add
Browse files Browse the repository at this point in the history
Per @reillyeon a += b is more efficient than a = a + b. Therefore I
changed it.
  • Loading branch information
kb1lqc committed Sep 10, 2017
1 parent 75d6930 commit f529c01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions faraday/aprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ def sendPositions(telemSequence, stations, socket):
b91Tlm = "|{0}{1}{2}{3}{4}{5}{6}|".format(b91seq, b91a, b91b, b91c, b91d, b91e, b91f)

# add telemetry to comments
comment = comment + b91Tlm
altComment = altComment + b91Tlm
comment += b91Tlm
altComment += b91Tlm

# Convert position to APRS-IS compliant string
latString, lonString = nmeaToDegDecMin(latitude, longitude)
Expand Down Expand Up @@ -708,7 +708,7 @@ def connectAPRSIS():
logger.info("Connection successful!")
return aprssock

sleep(2) # Try to reconnect every 10 seconds
sleep(2) # Try to reconnect every 2 seconds
return aprssock
else:
while True:
Expand Down

0 comments on commit f529c01

Please sign in to comment.