diff --git a/tasmota/xsns_22_sr04.ino b/tasmota/xsns_22_sr04.ino index 3a075e1e1..268e4a0ea 100644 --- a/tasmota/xsns_22_sr04.ino +++ b/tasmota/xsns_22_sr04.ino @@ -156,7 +156,7 @@ void Sr04TReading(void) { } #ifdef USE_WEBSERVER -const char HTTP_SNS_DISTANCE[] PROGMEM = +const char HTTP_SNS_DISTANCE_CM[] PROGMEM = "{s}SR04 " D_DISTANCE "{m}%s" D_UNIT_CENTIMETER "{e}"; // {s} = , {m} = , {e} = #endif // USE_WEBSERVER @@ -176,7 +176,7 @@ void Sr04Show(bool json) #endif // USE_DOMOTICZ #ifdef USE_WEBSERVER } else { - WSContentSend_PD(HTTP_SNS_DISTANCE, distance_chr); + WSContentSend_PD(HTTP_SNS_DISTANCE_CM, distance_chr); #endif // USE_WEBSERVER } }