feat: visual orientation picker on configure page + fix 404→setup QR in firmware

Replace orientation <select> dropdown on setup/configure with the same
visual two-button picker used in the SPA (SVG frame diagrams, ribbon
indicator, active highlight). Hidden input carries the value on submit.

Firmware: normal_operation() now calls show_setup_qr(mac) on 404 instead
of epd_fill(COLOR_RED) — device shows scannable QR with its own MAC when
not yet registered.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-04 21:59:37 -04:00
parent fea00722ed
commit 711ad43d79
+2 -2
View File
@@ -195,8 +195,8 @@ static void normal_operation(const String& mac) {
} }
// No stored image yet: keep current display (e-ink is persistent) // No stored image yet: keep current display (e-ink is persistent)
} else if (code == 404) { } else if (code == 404) {
// Device not registered — show red border indication // Device not registered — show setup QR so user can link this device
epd_fill(COLOR_RED); show_setup_qr(mac);
} else { } else {
// Server error / timeout: yellow border indication (server reachable, sync failed) // Server error / timeout: yellow border indication (server reachable, sync failed)
epd_fill(COLOR_YELLOW); epd_fill(COLOR_YELLOW);