Add Gitea OTA firmware update, dual-slot partition layout, and Gitea Actions release workflow

This commit is contained in:
2026-09-12 10:49:39 +02:00
parent 8ac465229c
commit 1d954287a2
82 changed files with 7611 additions and 395 deletions

View File

@@ -13,6 +13,7 @@
#include "rfid_manager.h"
#include "storage_manager.h"
#include "scryfall_client.h"
#include "wifi_manager.h"
#include "web_server.h"
static const char *TAG = "web";
@@ -397,6 +398,7 @@ esp_err_t web_server_start(void)
ESP_LOGE(TAG, "failed to create AP netif");
return ESP_FAIL;
}
esp_netif_set_hostname(ap, "mtg-companion");
}
esp_err_t ret = esp_wifi_stop(); /* safe even if not started */
@@ -471,7 +473,7 @@ esp_err_t web_server_start(void)
ESP_ERROR_CHECK(httpd_register_uri_handler(s_server, &URI_ART));
ESP_ERROR_CHECK(httpd_register_uri_handler(s_server, &URI_UNBIND));
ESP_LOGI(TAG, "SoftAP '%s' at 192.168.4.1, web server ready", AP_SSID);
ESP_LOGI(TAG, "Web server ready on all interfaces (Hotspot: 192.168.4.1, Wi-Fi: %s)", wifi_manager_get_ip());
return ESP_OK;
}