Skip to content

Commit

Permalink
Merge branch 'manual_control_enhancements'
Browse files Browse the repository at this point in the history
  • Loading branch information
texx00 committed Oct 10, 2020
2 parents 016f366 + b478d6e commit be4f2e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NCFeeder/feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def close(self):
def readline(self):
if not self.is_fake:
if self.serial.is_open:
while c := self.serial.inWaiting():
while self.serial.inWaiting():
line = self.serial.readline()
return line.decode(encoding='UTF-8')
else:
Expand Down
3 changes: 2 additions & 1 deletion UIserver/bot_interface/socketio_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def handle_message(message):
#
@socketio.on('software_updates_check')
def handle_software_updates_check():
if result := software_updates.compare_local_remote_tags():
result = software_updates.compare_local_remote_tags()
if result:
if result["behind_remote"]:
toast = """A new update is available ({0}).<br>
Your version is {1}.<br>
Expand Down

0 comments on commit be4f2e8

Please sign in to comment.