Skip to content

Commit 5776c07

Browse files
committed
removed temporaty debug output
1 parent 8f877fb commit 5776c07

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

src/ESP_WiFiManager_Lite.h

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,26 +2485,21 @@ class ESP_WiFiManager_Lite
24852485
root_html_template = FPSTR(ESP_WM_LITE_HTML_HEAD_START);
24862486

24872487
#if USING_CUSTOMS_STYLE
2488-
24892488
// Using Customs style when not NULL
24902489
if (_CustomsHeadStyle)
24912490
root_html_template += FPSTR(_CustomsHeadStyle);
24922491
else
24932492
root_html_template += FPSTR(ESP_WM_LITE_HTML_HEAD_STYLE);
2494-
24952493
#else
24962494
root_html_template += FPSTR(ESP_WM_LITE_HTML_HEAD_STYLE);
24972495
#endif
24982496

24992497
#if USING_CUSTOMS_HEAD_ELEMENT
2500-
25012498
if (_CustomsHeadElement)
25022499
root_html_template += _CustomsHeadElement;
2503-
25042500
#endif
25052501

25062502
#if SCAN_WIFI_NETWORKS
2507-
25082503
ESP_WML_LOGDEBUG1(WiFiNetworksFound, F(" SSIDs found, generating HTML now"));
25092504
// Replace HTML <input...> with <select...>, based on WiFi network scan in startConfigurationMode()
25102505

@@ -2525,7 +2520,7 @@ class ESP_WiFiManager_Lite
25252520
ListOfSSIDs = String(FPSTR(ESP_WM_LITE_OPTION_START)) + String(FPSTR(ESP_WM_LITE_NO_NETWORKS_FOUND)) + String(FPSTR(ESP_WM_LITE_OPTION_END));
25262521

25272522
pitem = FPSTR(ESP_WM_LITE_HTML_HEAD_END);
2528-
ESP_WML_LOGERROR3("1 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
2523+
25292524
#if MANUAL_SSID_INPUT_ALLOWED
25302525
pitem.replace("[[input_id]]", "<input id='id' list='SSIDs'>" + String(FPSTR(ESP_WM_LITE_DATALIST_START)) + "'SSIDs'>" +
25312526
ListOfSSIDs + FPSTR(ESP_WM_LITE_DATALIST_END));
@@ -2535,58 +2530,41 @@ ESP_WML_LOGERROR3("1 pitem.capacity():", String(pitem.capacity()), " pitem.lengt
25352530
ESP_WML_LOGDEBUG1(F("pitem:"), pitem);
25362531
#else
25372532
pitem.replace(F("[[input_id]]"), F("<select id='id'>") + ListOfSSIDs + String(FPSTR(ESP_WM_LITE_SELECT_END)));
2538-
ESP_WML_LOGERROR3("2 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
25392533
pitem.replace(F("[[input_id1]]"), F("<select id='id1'>") + ListOfSSIDs + String(FPSTR(ESP_WM_LITE_SELECT_END)));
2540-
ESP_WML_LOGERROR3("3 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
25412534
#endif
25422535

25432536
root_html_template += pitem + FPSTR(ESP_WM_LITE_FLDSET_START);
25442537

25452538
#else
2546-
25472539
pitem = FPSTR(ESP_WM_LITE_HTML_HEAD_END);
25482540
pitem.replace("[[input_id]]", FPSTR(ESP_WM_LITE_HTML_INPUT_ID));
25492541
pitem.replace("[[input_id1]]", FPSTR(ESP_WM_LITE_HTML_INPUT_ID1));
25502542
root_html_template += pitem + FPSTR(ESP_WM_LITE_FLDSET_START);
2551-
25522543
#endif // SCAN_WIFI_NETWORKS
25532544

25542545
#if USE_DYNAMIC_PARAMETERS
2555-
25562546
for (uint16_t i = 0; i < NUM_MENU_ITEMS; i++)
25572547
{
25582548
pitem = FPSTR(ESP_WM_LITE_HTML_PARAM);
2559-
ESP_WML_LOGERROR3("4 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
2560-
25612549
pitem.replace("{b}", myMenuItems[i].displayName);
25622550
pitem.replace("{v}", myMenuItems[i].id);
25632551
pitem.replace("{i}", myMenuItems[i].id);
2564-
ESP_WML_LOGERROR3("5 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
2565-
25662552
root_html_template += pitem;
25672553
}
2568-
25692554
#endif
25702555

25712556
root_html_template += String(FPSTR(ESP_WM_LITE_FLDSET_END)) + FPSTR(ESP_WM_LITE_HTML_BUTTON) + FPSTR(ESP_WM_LITE_HTML_SCRIPT);
25722557

25732558
#if USE_DYNAMIC_PARAMETERS
2574-
25752559
for (uint16_t i = 0; i < NUM_MENU_ITEMS; i++)
25762560
{
25772561
pitem = FPSTR(ESP_WM_LITE_HTML_SCRIPT_ITEM);
2578-
ESP_WML_LOGERROR3("6 pitem.capacity():", String(pitem.capacity()), " pitem.length():", String(pitem.length())); // TODO del log
2579-
25802562
pitem.replace("{d}", myMenuItems[i].id);
2581-
25822563
root_html_template += pitem;
25832564
}
2584-
25852565
#endif
25862566

2587-
ESP_WML_LOGERROR3("7 root_html_template.capacity():", String(root_html_template.capacity()), " root_html_template.length():", String(root_html_template.length())); // TODO del log
25882567
root_html_template += String(FPSTR(ESP_WM_LITE_HTML_SCRIPT_END)) + FPSTR(ESP_WM_LITE_HTML_END);
2589-
ESP_WML_LOGERROR3("8 root_html_template.capacity():", String(root_html_template.capacity()), " root_html_template.length():", String(root_html_template.length())); // TODO del log
25902568

25912569
return;
25922570
}

0 commit comments

Comments
 (0)