From e7a1bb78be99d2c40dc117c206b63641d0662ed4 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Tue, 31 Oct 2023 08:06:35 -0500 Subject: [PATCH] Update Logging.md --- docs/Logging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Logging.md b/docs/Logging.md index 0ecaec4..d83fb6a 100644 --- a/docs/Logging.md +++ b/docs/Logging.md @@ -100,7 +100,7 @@ void extraData(String &r){ } ``` -To embed this custom HTML text in the Web Log, call `homeSpan.setWebLogCallback(extraWebData)` in your sketch. +To embed this custom HTML text in the Web Log, call `homeSpan.setWebLogCallback(extraData)` in your sketch. Note that *r* is being passed as a reference and already includes all the HTML text the Web Log has produced to set up the page and create the initial table. You should therefore *extend* this String using `+=`. Do not simple assign this variable to a new String with `=` or you will overwrite all the HTML already produced!