2 Commits

Author SHA1 Message Date
pi
2fcaf2f064 fix(driver): persist brightness when message includes save and b
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 22:15:23 +12:00
pi
3b38264b70 chore(wifi): log connecting while waiting for STA
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 21:27:29 +12:00
2 changed files with 3 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ def process_data(payload, settings, presets, controller_ip=None):
presets.save()
if "save" in data and "clear_presets" in data:
presets.save()
if "save" in data and "b" in data:
settings.save()
def apply_brightness(data, settings, presets):

View File

@@ -54,6 +54,7 @@ sta_if.active(True)
sta_if.config(pm=network.WLAN.PM_NONE)
sta_if.connect(settings["ssid"], settings["password"])
while not sta_if.isconnected():
print("Connecting")
utime.sleep(1)
wdt.feed()