From 162e60eb3073c4fece15ea2f59bca4e624035009 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 12 Apr 2021 11:49:53 +0200 Subject: [PATCH] Fix migration to higher version (#11640) --- tasmota/tasmota.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index b9e94829a..55272c584 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -98,6 +98,8 @@ * Global variables \*********************************************************************************************/ +const uint32_t VERSION_MARKER[] PROGMEM = { 0x5AA55AA5, 0xFFFFFFFF, 0xA55AA55A }; + WiFiUDP PortUdp; // UDP Syslog and Alexa struct { @@ -364,6 +366,8 @@ void setup(void) { AddLog(LOG_LEVEL_INFO, PSTR(D_WARNING_MINIMAL_VERSION)); #endif // FIRMWARE_MINIMAL + memcpy_P(TasmotaGlobal.mqtt_data, VERSION_MARKER, 1); // Dummy for compiler saving VERSION_MARKER + #ifdef USE_ARDUINO_OTA ArduinoOTAInit(); #endif // USE_ARDUINO_OTA