mirror of https://github.com/arendst/Tasmota.git
parent
6108076eec
commit
465ace923b
|
@ -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} = <tr><th>, {m} = </th><td>, {e} = </td></tr>
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue