add %debugbar% to terminal page

http-comm
Ondřej Hruška 7 years ago
parent 253473daed
commit 0eeed9c7d9
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 15
      user/cgi_main.c

@ -25,20 +25,12 @@ httpd_cgi_state ICACHE_FLASH_ATTR tplScreen(HttpdConnData *connData, char *token
char buff[150]; char buff[150];
if (streq(token, "theme")) { if (streq(token, "want_all_fn")) {
sprintf(buff, "%d", termconf->theme);
tplSend(connData, buff, -1);
}
else if (streq(token, "want_all_fn")) {
sprintf(buff, "%d", termconf->want_all_fn); sprintf(buff, "%d", termconf->want_all_fn);
tplSend(connData, buff, -1); tplSend(connData, buff, -1);
} }
else if (streq(token, "default_fg")) { else if (streq(token, "debugbar")) {
sprintf(buff, "%d", termconf->default_fg); sprintf(buff, "%d", termconf->debugbar);
tplSend(connData, buff, -1);
}
else if (streq(token, "default_bg")) {
sprintf(buff, "%d", termconf->default_bg);
tplSend(connData, buff, -1); tplSend(connData, buff, -1);
} }
@ -64,7 +56,6 @@ tplAbout(HttpdConnData *connData, char *token, void **arg)
tplSend(connData, httpdGetVersion(), -1); tplSend(connData, httpdGetVersion(), -1);
} }
else if (streq(token, "vers_sdk")) { else if (streq(token, "vers_sdk")) {
//tplSend(connData, STR(ESP_SDK_VERSION), -1);
tplSend(connData, system_get_sdk_version(), -1); tplSend(connData, system_get_sdk_version(), -1);
} }
else if (streq(token, "hash_backend")) { else if (streq(token, "hash_backend")) {

Loading…
Cancel
Save