mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-16 15:26:29 +00:00
Update tasmota.ino
Keep hackbox commit insert possibility
This commit is contained in:
parent
2e89370f1e
commit
405da3ee3f
@ -68,8 +68,6 @@
|
|||||||
// Structs
|
// Structs
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
const char my_image[] PROGMEM = "(" CODE_IMAGE_STR ")";
|
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
* Global variables
|
* 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
|
gpio_flag my_module_flag; // Active copy of Template GPIO flags
|
||||||
StateBitfield global_state; // Global states (currently Wifi and Mqtt) (8 bits)
|
StateBitfield global_state; // Global states (currently Wifi and Mqtt) (8 bits)
|
||||||
char my_version[33]; // Composed version string
|
char my_version[33]; // Composed version string
|
||||||
|
char my_image[33]; // Code image and/or commit
|
||||||
char my_hostname[33]; // Composed Wifi hostname
|
char my_hostname[33]; // Composed Wifi hostname
|
||||||
char mqtt_client[TOPSZ]; // Composed MQTT Clientname
|
char mqtt_client[TOPSZ]; // Composed MQTT Clientname
|
||||||
char mqtt_topic[TOPSZ]; // Composed MQTT topic
|
char mqtt_topic[TOPSZ]; // Composed MQTT topic
|
||||||
@ -199,6 +198,7 @@ void setup(void)
|
|||||||
if (VERSION & 0xff) { // Development or patched version 6.3.0.10
|
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_version, sizeof(my_version), PSTR("%s.%d"), my_version, VERSION & 0xff);
|
||||||
}
|
}
|
||||||
|
snprintf_P(my_image, sizeof(my_image), PSTR("(%s)"), CODE_IMAGE_STR);
|
||||||
|
|
||||||
SettingsLoad();
|
SettingsLoad();
|
||||||
SettingsDelta();
|
SettingsDelta();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user