From 70776a0a052dc80faef068acd026d9d8ffc245a0 Mon Sep 17 00:00:00 2001 From: Mollayo <52084227+Mollayo@users.noreply.github.com> Date: Wed, 8 Sep 2021 17:52:21 +0200 Subject: [PATCH] Using __FlashStringHelper for customHTML (#1292) * Add callback for OTA update * Using __FlashStringHelper for customHTML --- WiFiManager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WiFiManager.h b/WiFiManager.h index de79dc1..c0c67b9 100644 --- a/WiFiManager.h +++ b/WiFiManager.h @@ -128,7 +128,7 @@ class WiFiManagerParameter { const char *getPlaceholder() const; // @deprecated, use getLabel int getValueLength() const; int getLabelPlacement() const; - const char *getCustomHTML() const; + virtual const char *getCustomHTML() const; void setValue(const char *defaultValue, int length); protected: @@ -141,6 +141,7 @@ class WiFiManagerParameter { char *_value; int _length; int _labelPlacement; + protected: const char *_customHTML; friend class WiFiManager; };