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:
parent
7e4da837ad
commit
f53d244ca2
|
|
@ -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:]
|
||||
|
|
|
|||
Loading…
Reference in New Issue