added changes for bp1658

This commit is contained in:
refuhr
2022-09-28 17:53:13 +02:00
parent a2634bee6a
commit f3198b7773
7 changed files with 42 additions and 31 deletions

View File

@@ -70,7 +70,7 @@ const char htmlBodyStart[] =
"<div id=\"main\">"
"<h1>"
"<a target=\"_blank\" href=\"https://github.com/openshwprojects/OpenBK7231T_App/\">";
const char htmlBodyStart2[] =
const char htmlBodyStart2[] =
"</a></h1>";
const char htmlBodyEnd[] = "</div></body></html>" ;
@@ -209,7 +209,7 @@ void http_html_start(http_request_t *request, const char *pagename) {
if (pagename) {
poststr(request, " - ");
poststr(request, pagename);
}
}
poststr(request, "</title>");
poststr(request, htmlHeadMain);
poststr(request, htmlHeadStyle);
@@ -351,6 +351,8 @@ const char *htmlPinRoleNames[] = {
"SM2135CLK",
"BP5758D_DAT",
"BP5758D_CLK",
"BP1658CJ_DAT",
"BP1658CJ_CLK",
"PWM_n",
"error",
"error",
@@ -432,7 +434,7 @@ int postany(http_request_t *request, const char *str, int len){
rtos_delay_milliseconds(1);
}
memcpy( request->reply+request->replylen, str, addlen );
request->replylen += addlen;
return (currentlen + addlen);