Skip to content

Commit

Permalink
fix some PEP8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Feb 16, 2022
1 parent 350ea52 commit 8d0cdfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion simulation/src/wifi_manager/wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _scan(self,
:param scan_interval: The scan interval in milliseconds
:type scan_interval: int
:param lock: The lock object
:type lock: lock
:type lock: _thread.lock
"""
pixel.fading = True

Expand Down
10 changes: 5 additions & 5 deletions wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import gc
import json
import machine
import os
# import os
import _thread
import time
import ubinascii
Expand All @@ -20,7 +20,7 @@

# pip installed packages
import picoweb
import ulogging as logging
# import ulogging as logging
import ure as re
# https://github.com/pfalcon/picoweb
# https://github.com/pfalcon/pycopy-lib/blob/9b8bbae774140563e9be138724de083267f99ff9/logging/
Expand Down Expand Up @@ -90,7 +90,7 @@ def load_and_connect(self) -> bool:
if PathHelper.exists(path=self._config_file):
self.logger.debug('Encrypted wifi config file exists')
loaded_cfg = self._load_wifi_config_data(path=self._config_file,
encrypted=True)
encrypted=True)

private_cfg = None
ssids = list()
Expand Down Expand Up @@ -334,7 +334,7 @@ def _scan(self,
wh: WifiHelper,
msg: Message,
scan_interval: int,
lock: lock) -> None:
lock: int) -> None:
"""
Scan for available networks.
Expand All @@ -347,7 +347,7 @@ def _scan(self,
:param scan_interval: The scan interval in milliseconds
:type scan_interval: int
:param lock: The lock object
:type lock: lock
:type lock: _thread.lock
"""
pixel.fading = True

Expand Down

0 comments on commit 8d0cdfc

Please sign in to comment.