Skip to content

Commit

Permalink
Fixed error (that I caused) refactoring serial status commands becaus…
Browse files Browse the repository at this point in the history
…e I thought it was a log statement. Main works now.
  • Loading branch information
linguini1 committed Jun 14, 2023
1 parent 5ab7f90 commit f8b752e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/serial/serial_rn2483_radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def run(self):
)
# initiate the USB serial connection
logger.info(f"RN2483 Radio: Connected to {self.serial_port}")
self.serial_status.put("rn2483_connected")
self.serial_status.put("rn2483_connected True")
self.serial_status.put(f"rn2483_port {self.serial_port}")

self.init_rn2483_radio()
Expand Down
1 change: 1 addition & 0 deletions modules/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def run(self):

while not self.serial_status.empty():
x = self.serial_status.get().split(" ", maxsplit=1)
logger.debug("serial_status: {x}")
self.parse_serial_status(command=x[0], data=x[1])
self.update_websocket()

Expand Down

0 comments on commit f8b752e

Please sign in to comment.