Removed unused comment and added comments

Commented that the comma search at the end is due to the comma being able
to change index due to a varying callsign length for the telemetry
callsign. Also removed an unused comment variable. This code does NOT
check for valid length of input data.
This commit is contained in:
Bryce Salmi 2017-03-11 11:12:07 -08:00
parent 7e4da837ad
commit f53d244ca2
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,6 @@ class TelemetryUnitLabelsReport(APRSPacket):
b6 = "EN"
b7 = "EN"
b8 = "EN"
comment = ''
def _serialize_body(self):
@ -40,4 +39,5 @@ class TelemetryUnitLabelsReport(APRSPacket):
badcomma = tmpbody.index(",")
# remove static but erroneous comma between UNIT. and a1 value
# Position can vary due to callsign
return tmpbody[:badcomma] + tmpbody[badcomma+1:]