as per user request - pwm toggler driver

This commit is contained in:
openshwprojects
2022-12-01 19:07:20 +01:00
parent 409b0cfa50
commit 153f09689d
6 changed files with 307 additions and 0 deletions

View File

@ -225,6 +225,11 @@ int http_fn_index(http_request_t* request) {
http_html_start(request, NULL);
poststr(request, "<div id=\"changed\">");
#if defined(PLATFORM_BEKEN) || defined(WINDOWS)
if (DRV_IsRunning("PWMToggler")) {
DRV_Toggler_ProcessChanges(request);
}
#endif
if (http_getArg(request->url, "tgl", tmpA, sizeof(tmpA))) {
j = atoi(tmpA);
if (j == SPECIAL_CHANNEL_LEDPOWER) {
@ -694,6 +699,12 @@ int http_fn_index(http_request_t* request) {
}
}
#if defined(PLATFORM_BEKEN) || defined(WINDOWS)
if (DRV_IsRunning("PWMToggler")) {
DRV_Toggler_AddToHtmlPage(request);
}
#endif
poststr(request, "</table>");
#ifndef OBK_DISABLE_ALL_DRIVERS
DRV_AppendInformationToHTTPIndexPage(request);