Add OTA firmware update via GitHub Releases API
New "Check for update" entry in Menu > System checks the latest GitHub release's tag against the running version and, if newer, downloads and flashes its firmware.bin asset directly over WiFi - no cable or web flasher needed. Requires switching the partition scheme to min_spiffs (two OTA-capable app partitions instead of a single non-OTA one), which needs a full reflash. confirmWarningScreen() now takes title/body as strings instead of StringIds so it can show a dynamically composed message (the target version number) for the update confirmation, with an accent color parameter so the OTA confirmation can use green instead of the red used for the existing destructive-action confirmations. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,15 @@ static const char* const I18N_ES[] = {
|
||||
"Toca para saltar",
|
||||
"Ruta: ",
|
||||
"Escanea con el móvil:",
|
||||
"Buscar actualización",
|
||||
"Buscando actualizaciones...",
|
||||
"Error al comprobar. Revisa tu conexión WiFi.",
|
||||
"Ya actualizado: v",
|
||||
"Actualización disponible: v",
|
||||
"Se descargará e instalará una nueva actualización de firmware. El dispositivo se reiniciará automáticamente después. No interrumpas la conexión WiFi ni la alimentación durante este proceso.",
|
||||
"Instalando actualización ",
|
||||
"Error al actualizar.",
|
||||
"¡Instalado! Reiniciando...",
|
||||
};
|
||||
|
||||
static_assert(sizeof(I18N_ES) / sizeof(I18N_ES[0]) == (size_t)StringId::COUNT,
|
||||
|
||||
Reference in New Issue
Block a user