Skip to content

Commit

Permalink
Merge pull request #188 from pavll/fix-149-might-be-referenced-before…
Browse files Browse the repository at this point in the history
…-assignment

Fix #149, * might be referenced before assignment
  • Loading branch information
astrogeco authored Jul 29, 2021
2 parents 035f7a7 + b0e5d92 commit 64f7b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Subsystems/tlmGUI/GenericTelemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ def __init__(self):
#
def displayTelemetryItem(self, datagram, tlmIndex, labelField, valueField):
if tlmItemIsValid[tlmIndex]:
tlmOffset = 0
try:
tlmOffset = self.mm[0]
except ValueError:
pass
TlmField1 = tlmItemFormat[tlmIndex]
if TlmField1[0] == "<":
TlmField1 = TlmField1[1:]

itemStart = 0
try:
itemStart = int(tlmItemStart[tlmIndex]) + tlmOffset
except UnboundLocalError:
Expand Down

0 comments on commit 64f7b86

Please sign in to comment.