From b980e93a8616cbff114a2c284eab124f97f605cc Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 14 Apr 2022 14:07:54 +0200 Subject: [PATCH] Fix IMPROV image name when Tasmota English --- tasmota/xdrv_62_improv.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasmota/xdrv_62_improv.ino b/tasmota/xdrv_62_improv.ino index 1ae694d9d..6dc0abb68 100644 --- a/tasmota/xdrv_62_improv.ino +++ b/tasmota/xdrv_62_improv.ino @@ -184,9 +184,10 @@ void ImprovReceived(void) { // Tasmota DE 11.0.0.7 ESP8266EX Wemos4 char image_name[33]; snprintf_P(image_name, sizeof(image_name), PSTR(D_HTML_LANGUAGE)); - UpperCase(image_name, image_name); - if (!strcmp_P(image_name, PSTR("EN"))) { // Non-english - snprintf_P(image_name, sizeof(image_name), PSTR(CODE_IMAGE_STR)); + UpperCase(image_name, image_name); // Language id + if (!strcmp_P(image_name, PSTR("EN")) && // English + 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 } char data[200];