diff --git a/CHANGELOG.md b/CHANGELOG.md index e9cce18b8..c2f44d23d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. - Support for multiple WeMo devices by Magic73 (#9208) - Fallback NTP server from x.pool.ntp.org if no ntpservers are configured - TyuaMcu update 2/3 by Federico Leoni (#10004) +- Add option `#define UPGRADE_V8_MIN` to drop support for upgrading before v8.0 (saves 1.3kb) ### Breaking Changed - KNX DPT9 (16-bit float) to DPT14 (32-bit float) by Adrian Scillato (#9811, #9888) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 0908fae79..ca1b5ca8e 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -45,6 +45,7 @@ #define CFG_HOLDER 4617 // [Reset 1] Change this value (max 32000) to load SECTION1 configuration parameters to flash // If following define is disabled it increases configuration corruption detection BUT // it only allows firmware upgrades starting from version 6.6.0.11 +// #define UPGRADE_V8_MIN // do not support upgrading from version below 8.0.0 // -- Project ------------------------------------- #define PROJECT "tasmota" // PROJECT is used as the default topic delimiter diff --git a/tasmota/settings.ino b/tasmota/settings.ino index e9edf73a6..45f26e8a5 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -1097,6 +1097,7 @@ void SettingsDelta(void) if (Settings.version != VERSION) { // Fix version dependent changes #ifdef ESP8266 +#ifndef UPGRADE_V8_MIN if (Settings.version < 0x07000002) { Settings.web_color2[0][0] = Settings.web_color[0][0]; Settings.web_color2[0][1] = Settings.web_color[0][1]; @@ -1200,6 +1201,7 @@ void SettingsDelta(void) // SettingsUpdateText(SET_FRIENDLYNAME3, Settings.ex_friendlyname[2]); // SettingsUpdateText(SET_FRIENDLYNAME4, Settings.ex_friendlyname[3]); } +#endif // UPGRADE_V8_MIN if (Settings.version < 0x08020003) { SettingsUpdateText(SET_TEMPLATE_NAME, Settings.user_template_name); Settings.zb_channel = 0; // set channel to zero to force reinit of zigbee parameters diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index da400cea3..4d7b3cf79 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -458,6 +458,8 @@ #define USE_DOMOTICZ // Enable Domoticz #undef USE_HOME_ASSISTANT // Disable Home Assistant +#define UPGRADE_V8_MIN // do not support upgrading from version below 8.0.0 + // -- MQTT - TLS - AWS IoT ------------------------ #ifdef USE_ZBBRIDGE_TLS // Enable TLS for ZbBridge #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake)