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_FR[] = {
|
||||
"Toucher pour passer",
|
||||
"Trajet : ",
|
||||
"Scanner avec le téléphone :",
|
||||
"Rechercher une mise à jour",
|
||||
"Recherche de mises à jour...",
|
||||
"Échec de la vérification. Vérifiez votre connexion WiFi.",
|
||||
"Déjà à jour : v",
|
||||
"Mise à jour disponible : v",
|
||||
"Une nouvelle mise à jour du micrologiciel va être téléchargée et installée. L'appareil redémarrera automatiquement ensuite. Merci de ne pas interrompre la connexion WiFi ni l'alimentation pendant ce processus.",
|
||||
"Installation de la mise à jour ",
|
||||
"Échec de la mise à jour.",
|
||||
"Installé ! Redémarrage...",
|
||||
};
|
||||
|
||||
static_assert(sizeof(I18N_FR) / sizeof(I18N_FR[0]) == (size_t)StringId::COUNT,
|
||||
|
||||
Reference in New Issue
Block a user