mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 14:15:40 +00:00
add a little driver that can make scriptable buttons for HTTP panel
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user