From 405da3ee3f147d056abbac43045c71d8bb9c0085 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 23 Jan 2020 10:33:08 +0100 Subject: [PATCH] Update tasmota.ino Keep hackbox commit insert possibility --- tasmota/tasmota.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 5c20da3ad..5b47ca581 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -68,8 +68,6 @@ // Structs #include "settings.h" -const char my_image[] PROGMEM = "(" CODE_IMAGE_STR ")"; - /*********************************************************************************************\ * Global variables \*********************************************************************************************/ @@ -159,6 +157,7 @@ myio my_module; // Active copy of Module GPIOs (17 x gpio_flag my_module_flag; // Active copy of Template GPIO flags StateBitfield global_state; // Global states (currently Wifi and Mqtt) (8 bits) char my_version[33]; // Composed version string +char my_image[33]; // Code image and/or commit char my_hostname[33]; // Composed Wifi hostname char mqtt_client[TOPSZ]; // Composed MQTT Clientname char mqtt_topic[TOPSZ]; // Composed MQTT topic @@ -199,7 +198,8 @@ void setup(void) if (VERSION & 0xff) { // Development or patched version 6.3.0.10 snprintf_P(my_version, sizeof(my_version), PSTR("%s.%d"), my_version, VERSION & 0xff); } - + snprintf_P(my_image, sizeof(my_image), PSTR("(%s)"), CODE_IMAGE_STR); + SettingsLoad(); SettingsDelta();