Update tasmota.ino

Keep hackbox commit insert possibility
This commit is contained in:
Theo Arends 2020-01-23 10:33:08 +01:00 committed by GitHub
parent 2e89370f1e
commit 405da3ee3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();