Dim LED ring, add blink mode, and signal OTA outcome on the ring.

Default brightness is ~5%; UART blink mode and green/red pulses mark OTA success or failure. Failed UART uploads skip ESP-NOW distribution.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-19 21:53:10 +02:00
co-authored by Cursor
parent 508b684fdf
commit 8931912583
13 changed files with 324 additions and 71 deletions
+4
View File
@@ -151,6 +151,10 @@ ota_feed_result_t ota_uart_feed(const uint8_t *data, size_t len) {
uint32_t ota_uart_bytes_written(void) { return s_ota.written; }
uint32_t ota_uart_bytes_received(void) { return s_ota.received; }
uint32_t ota_uart_total_size(void) { return s_ota.active ? s_ota.total_size : 0; }
bool ota_uart_get_staged_image(const esp_partition_t **partition_out,
uint32_t *size_out) {
if (!s_staged.valid || s_staged.partition == NULL) {