Skip to content

Commit 0e6d16e

Browse files
committed
More last minute pybytes fixes
1 parent 865476e commit 0e6d16e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

esp32/frozen/Pybytes/_pybytes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ def activate(self, activation_string):
443443
except:
444444
from _pybytes_config import PybytesConfig
445445
try:
446-
if self.__conf = PybytesConfig().cli_config(activation_info=jstring):
446+
self.__conf = PybytesConfig().cli_config(activation_info=jstring)
447+
if self.__conf is not None:
447448
self.start()
448449
else:
449450
print('Activation failed!')

esp32/frozen/Pybytes/_pybytes_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,10 @@ def cli_config(self, filename='/flash/pybytes_config.json', activation_info=None
393393
if str(e) == "list index out of range" and attempt == 3:
394394
print("Please review Wifi SSID and password!")
395395
wlan.deinit()
396-
return False
396+
return None
397397
elif attempt == 3:
398398
print("Error connecting using WIFI: %s" % e)
399+
return None
399400
self.__read_cli_activation(activation_info)
400401
return self.__process_cli_activation(filename)
401402

0 commit comments

Comments
 (0)