From 1e3c7b7e78e80e7923e275131dfb4bb6d59261ac Mon Sep 17 00:00:00 2001 From: agessaman Date: Sat, 3 Oct 2026 15:47:01 -0700 Subject: [PATCH] feat(ota): dev stores /mqtt.json, so its state generation is 2 Builds that only read /mqtt_prefs (gen 1) are refused as channel-switch targets until they can read /mqtt.json. --- src/helpers/OtaChannel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/OtaChannel.h b/src/helpers/OtaChannel.h index 974cc4ba9..cd2524c36 100644 --- a/src/helpers/OtaChannel.h +++ b/src/helpers/OtaChannel.h @@ -82,8 +82,9 @@ static inline bool ota_parse_channel(const char* arg, uint8_t* out) { // or without a transport this node depends on. Bump OTA_STATE_GEN when a build starts // storing state that older builds cannot read. // 1: /prefs.json + /mqtt_prefs +// 2: /mqtt.json #ifndef OTA_STATE_GEN -#define OTA_STATE_GEN 1 +#define OTA_STATE_GEN 2 #endif #define OTA_CAP_ETH 0x01 // carries MQTT over Ethernet #if defined(NETWORK_PREFER_ETHERNET)