From 610229d21df98918ae6b62f59336a39d55b71c8a Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Wed, 25 Aug 2021 17:32:19 +0200 Subject: [PATCH] Pouziti modifikovaneho template placeholderu (nutno overit!) --- src/WiFiConfig.h | 4 ++++ src/embHTML.h | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/WiFiConfig.h b/src/WiFiConfig.h index 76fa89f..17869c3 100644 --- a/src/WiFiConfig.h +++ b/src/WiFiConfig.h @@ -39,6 +39,10 @@ #include #include +#if TEMPLATE_PLACEHOLDER != '$' +# error 'Need to redefine TEPLATE_PLACEHOLDER to $ sign' +#endif + #define WC_DONT_RUN_CONFIGAP -1 // priznak, ze si neprejeme spoustet konfiguracni AP (uziva se misto parametru timeout). Urceno pro bateriove napajene pristroje #if not defined(WIFICFG_FILE) diff --git a/src/embHTML.h b/src/embHTML.h index b37dae1..d99a122 100644 --- a/src/embHTML.h +++ b/src/embHTML.h @@ -17,9 +17,9 @@ static const char PAGE_INDEX1[] PROGMEM = R"=====(

)=====" WIFICONFIG_TITLE R"=====(

System Info -
Core Version:%SDK% -
Flash Size:%FS% kB -
Sketch Size/Free:%SS% kB / %FSS% kB -
STA MAC:%STAMAC% -
AP MAC:%APMAC% -
ESP Chip ID:%ESPID% -
Flash Chip ID:%FID% +
Core Version:$SDK$ +
Flash Size:$FS$ kB +
Sketch Size/Free:$SS$ kB / $FSS$ kB +
STA MAC:$STAMAC$ +
AP MAC:$APMAC$ +
ESP Chip ID:$ESPID$ +
Flash Chip ID:$FID$
)=====";