v0.6.1
Pre-release
Pre-release
Changes since v0.6.0
WiFi Configuration UX
- Configured SSIDs now visible on page load. The
/api/statusendpoint now returnsssids(array of SSID strings) andhas_pass(array of booleans) so the web UI can display all saved WiFi networks immediately — no scan required. Passwords are never sent to the frontend. - Pre-populated networks use text-input mode. Saved SSIDs appear as editable text fields instead of empty dropdowns, making them visible as soon as the settings page loads.
- Cache invalidation after save. save_post_handler now sets
s_status_cache.cfg_valid = falseafter saving WiFi config, so the next/api/statuscall returns the updated SSID list without waiting for the 2-minute cache TTL.
Display — New "Backlight always off" Mode
- Added
LCD_THERAPY_ALWAYS_OFFmode (battery-friendly). A third display mode option complements the existing "Show live graph" and "Backlight off":- Show live graph — backlight always on (unchanged)
- Backlight off — backlight off during therapy, on otherwise (unchanged)
- Backlight always off (battery) — backlight fully off in all states except during boot and SoftAP setup mode
- Centralized backlight policy. New bsp_display_apply_backlight_policy() function evaluates the current LCD mode and therapy state to set the correct backlight on/off. Called after boot completes, when entering SoftAP, and when the mode is changed via the web UI.
- SoftAP force-on override. A
s_backlight_force_onflag ensures the backlight stays on during SoftAP/portal mode regardless of the selected display mode, so users can always interact with the setup screen. - Immediate effect on save. Backlight policy is evaluated after the new mode is persisted to NVS (not before), so selecting "Backlight always off" turns the LCD off immediately without waiting for therapy to start.
- Therapy stop respects always-off. When therapy ends,
LCD_THERAPY_OFFrestores the backlight butLCD_THERAPY_ALWAYS_OFFkeeps it off.