feat(settings/espnow): validate wifi_channel and wire into firmware

This commit is contained in:
pi
2026-03-26 00:40:21 +13:00
parent 43d494bcb9
commit ec39df00fc
4 changed files with 25 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ class Settings(dict):
self['session_secret_key'] = self.generate_secret_key()
# Save immediately when generating a new key
self.save()
# ESP-NOW STA channel (2.4 GHz) for LED drivers / bridge alignment; 111
if 'wifi_channel' not in self:
self['wifi_channel'] = 6
def save(self):
try: