mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-13 14:51:21 +10:00
fix param crash
This commit is contained in:
+1
-1
@@ -923,7 +923,7 @@ String WiFiManager::getParamOut(){
|
||||
if(tok_n)pitem.replace(FPSTR(T_n), _params[i]->getID());
|
||||
if(tok_p)pitem.replace(FPSTR(T_p), FPSTR(T_t));
|
||||
if(tok_t)pitem.replace(FPSTR(T_t), _params[i]->getPlaceholder());
|
||||
snprintf(parLength, 5, PSTR("%d"), _params[i]->getValueLength());
|
||||
snprintf(parLength, 5, "%d", _params[i]->getValueLength());
|
||||
if(tok_l)pitem.replace(FPSTR(T_l), parLength);
|
||||
if(tok_v)pitem.replace(FPSTR(T_v), _params[i]->getValue());
|
||||
if(tok_c)pitem.replace(FPSTR(T_c), _params[i]->getCustomHTML()); // meant for additional attributes, not html
|
||||
|
||||
Reference in New Issue
Block a user