Skip to content

Commit

Permalink
Merge pull request #2 from bobjacobsen/fixme_once
Browse files Browse the repository at this point in the history
Fixme once
  • Loading branch information
Poikilos authored Apr 15, 2024
2 parents 91b28bd + af9ebf3 commit 1d6f1b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions openlcb/datagramservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ def handleDatagramRejected(self, message):
"Outstanding and replied-to memos don't match on rejected"
)

currentOutstandingMemo = None
# FIXME: unused currentOutstandingMemo. Is any code incomplete here?
self.currentOutstandingMemo = None

# fire the callback
memo.rejectedReply(memo)
Expand All @@ -232,8 +231,7 @@ def handleDatagramRejected(self, message):

def handleLinkQuiesce(self, message):
'''Link quiesced before outage: stop operation'''
quiesced = True
# FIXME: unused quiesced. Is any code incomplete here?
self.quiesced = True

def handleLinkRestarted(self, message):
'''Link restarted after outage:
Expand Down
3 changes: 1 addition & 2 deletions openlcb/tcplink/tcplink.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def forwardMessage(self, messageBytes, gatewayNodeID) : # not sure why gatewayN
destNodeID = None
data = messageBytes[8:]
if mti.addressPresent() :
destNodeID = NodeID(messagePart[8:13])
# FIXME: ^ messagePart is undefined. Slice data or messageBytes?
destNodeID = NodeID(messageBytes[8:13])
data = messageBytes[14:]
# and finally create the message
message = Message(mti, sourceNodeID, destNodeID, data)
Expand Down

0 comments on commit 1d6f1b0

Please sign in to comment.