add a little driver that can make scriptable buttons for HTTP panel

This commit is contained in:
openshwprojects
2022-12-14 21:22:14 +01:00
parent 194efde423
commit 861a2f73f0
6 changed files with 247 additions and 1 deletions

View File

@ -229,6 +229,11 @@ int http_fn_index(http_request_t* request) {
if (DRV_IsRunning("PWMToggler")) {
DRV_Toggler_ProcessChanges(request);
}
#endif
#if defined(PLATFORM_BEKEN) || defined(WINDOWS)
if (DRV_IsRunning("httpButtons")) {
DRV_HTTPButtons_ProcessChanges(request);
}
#endif
if (http_getArg(request->url, "tgl", tmpA, sizeof(tmpA))) {
j = atoi(tmpA);
@ -717,6 +722,11 @@ int http_fn_index(http_request_t* request) {
DRV_Toggler_AddToHtmlPage(request);
}
#endif
#if defined(PLATFORM_BEKEN) || defined(WINDOWS)
if (DRV_IsRunning("httpButtons")) {
DRV_HTTPButtons_AddToHtmlPage(request);
}
#endif
poststr(request, "</table>");
#ifndef OBK_DISABLE_ALL_DRIVERS