feat: HAL variant system, OTA improvements, NVS migration scaffold
- Add variants/vesper.hpp and variants/agnus.hpp with HAS_SD_CARD, HAS_RTC, HAS_PCF8574, OUTPUT_COUNT_MAX, HW_FAMILY capability flags - Add agnus-v1 and agnus-mini-v1 PlatformIO environments with -include injection - Add src/NvsMigration/ scaffold for future NVS schema versioning - FirmwareHandler: OTA flow improvements and header updates - OTAManager: FastAPI integration, semver handling improvements - ConfigManager: refactoring groundwork for NVS-only variant support - CommunicationRouter: minor fix - provisioning/nvs_lab_device.csv: fix hw_type to VS, update device id fields - docs/dev/ota-telemetry-api.md: update API spec Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
#include "FirmwareValidator/FirmwareValidator.hpp"
|
||||
#include "InputManager/InputManager.hpp"
|
||||
#include "Version.hpp"
|
||||
#include "NvsMigration/NvsMigration.hpp"
|
||||
|
||||
#define TAG "Main"
|
||||
|
||||
@@ -198,6 +199,13 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.print("VESPER System Booting UP! - Version ");
|
||||
Serial.println(FW_VERSION);
|
||||
|
||||
// ── NVS schema migration ─────────────────────────────────────────────────
|
||||
// Must run before ConfigManager::begin() so it sees the new key names.
|
||||
// Safe to run on every boot — exits immediately if schema is already current.
|
||||
// Remove this call (and NvsMigration.*) once all devices have passed through
|
||||
// firmware 1.9.x via the staged OTA upgrade chain.
|
||||
NvsMigration::run();
|
||||
Wire.begin(4,15);
|
||||
auto& hwConfig = configManager.getHardwareConfig();
|
||||
SPI.begin(hwConfig.ethSpiSck, hwConfig.ethSpiMiso, hwConfig.ethSpiMosi);
|
||||
|
||||
Reference in New Issue
Block a user