fix(transport): disable UART ESP-NOW bridge by default

Require serial_enabled true in settings to open serial_port; default false in
set_defaults for Wi-Fi-only and dev machines.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-03 15:07:16 +12:00
parent 3bb75d49de
commit c1b0c41ef2
2 changed files with 26 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ class Settings(dict):
# down (0 disables). Helps drivers that reconnect after seeing traffic on 8766.
if 'wifi_driver_hello_interval_s' not in self:
self['wifi_driver_hello_interval_s'] = 10.0
# UART to ESP32 ESP-NOW bridge; default off (Wi-Fi drivers need no serial).
if 'serial_enabled' not in self:
self['serial_enabled'] = False
def save(self):
try: