Skip to content

Commit

Permalink
Remove update pulse effect
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwohlbruck committed May 17, 2022
1 parent 26baf6c commit b5dc217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions micro/app/ota/ota_updater.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os, gc
from .httpclient import HttpClient
from app.led import pulse, set_color
from app.led import set_color

class OTAUpdater:
"""
Expand Down Expand Up @@ -79,7 +79,6 @@ def install_update_if_available(self) -> bool:
if latest_version > current_version:
print('Updating to version {}...'.format(latest_version))
set_color((255, 255, 255))
# pulse()

self._create_new_version_file(latest_version)
self._download_new_version(latest_version)
Expand Down
2 changes: 2 additions & 0 deletions micro/app/uwebsockets/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import usocket as socket
from ucollections import namedtuple
import machine
from app.led import set_color


# Opcodes
Expand Down Expand Up @@ -245,6 +246,7 @@ def close(self, code=CLOSE_OK, reason=''):

def _close(self):
if __debug__: print("Connection closed")
set_color((255, 0, 0))
self.open = False
self.sock.close()
machine.reset()

0 comments on commit b5dc217

Please sign in to comment.