mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Fix IMPROV image name when Tasmota English
This commit is contained in:
parent
3f4f519e5c
commit
b980e93a86
@ -184,9 +184,10 @@ void ImprovReceived(void) {
|
|||||||
// Tasmota DE 11.0.0.7 ESP8266EX Wemos4
|
// Tasmota DE 11.0.0.7 ESP8266EX Wemos4
|
||||||
char image_name[33];
|
char image_name[33];
|
||||||
snprintf_P(image_name, sizeof(image_name), PSTR(D_HTML_LANGUAGE));
|
snprintf_P(image_name, sizeof(image_name), PSTR(D_HTML_LANGUAGE));
|
||||||
UpperCase(image_name, image_name);
|
UpperCase(image_name, image_name); // Language id
|
||||||
if (!strcmp_P(image_name, PSTR("EN"))) { // Non-english
|
if (!strcmp_P(image_name, PSTR("EN")) && // English
|
||||||
snprintf_P(image_name, sizeof(image_name), PSTR(CODE_IMAGE_STR));
|
strcasecmp_P("Tasmota", PSTR(CODE_IMAGE_STR))) { // Not Tasmota
|
||||||
|
snprintf_P(image_name, sizeof(image_name), PSTR(CODE_IMAGE_STR)); // English image name
|
||||||
image_name[0] &= 0xDF; // Make first character uppercase
|
image_name[0] &= 0xDF; // Make first character uppercase
|
||||||
}
|
}
|
||||||
char data[200];
|
char data[200];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user