Update xsns_22_sr04.ino

Fix compilation
This commit is contained in:
Theo Arends 2021-01-22 18:24:26 +01:00
parent 6108076eec
commit 465ace923b
1 changed files with 2 additions and 2 deletions

View File

@ -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
}
}