mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 21:26:33 +00:00
[WebUI] Fix first line seperator (#20518)
The separator (request) flag has to be cleared before starting the output of sensors/drivers to ignore previous outputs. So there will no seperator in front of the list. This only appeared, when `WebTime` is off.
This commit is contained in:
parent
aa2053988a
commit
0cd3d3b003
@ -1492,6 +1492,7 @@ bool HandleRootStatusRefresh(void)
|
|||||||
#endif // USE_WEB_SSE
|
#endif // USE_WEB_SSE
|
||||||
|
|
||||||
WSContentSend_P(PSTR("{t}")); // <table style='width:100%'>
|
WSContentSend_P(PSTR("{t}")); // <table style='width:100%'>
|
||||||
|
WSContentSeparator(3); // Reset seperator to ignore previous outputs
|
||||||
if (Settings->web_time_end) {
|
if (Settings->web_time_end) {
|
||||||
WSContentSend_P(PSTR("{s}" D_TIMER_TIME "{m}%s{e}"), GetDateAndTime(DT_LOCAL).substring(Settings->web_time_start, Settings->web_time_end).c_str());
|
WSContentSend_P(PSTR("{s}" D_TIMER_TIME "{m}%s{e}"), GetDateAndTime(DT_LOCAL).substring(Settings->web_time_start, Settings->web_time_end).c_str());
|
||||||
WSContentSeparator(0); // Print separator
|
WSContentSeparator(0); // Print separator
|
||||||
|
Loading…
x
Reference in New Issue
Block a user