From b6c6385308d9b89adb545a08d862eea06eab4f7d Mon Sep 17 00:00:00 2001 From: arofarn Date: Tue, 21 Apr 2020 19:10:31 +0200 Subject: [PATCH] pylint --- code/boot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/boot.py b/code/boot.py index 27b198c..8af4d04 100644 --- a/code/boot.py +++ b/code/boot.py @@ -1,6 +1,7 @@ -# This file is executed on every boot (including wake-boot from deepsleep) -#import esp -#esp.osdebug(None) +"""This file is executed on every boot (including wake-boot from deepsleep)""" + +# import esp +# esp.osdebug(None) import gc import time import network @@ -10,9 +11,9 @@ from wifi_config import known_wifi_ap # Connect to one of the known wifi AP WLAN = network.WLAN(network.STA_IF) WLAN.active(True) -wifi_ap_list = WLAN.scan() +AP_LIST = WLAN.scan() -for ap in wifi_ap_list: +for ap in AP_LIST: if WLAN.isconnected(): break