diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 09cad939b..1463afb50 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -1000,7 +1000,7 @@ typedef enum { /* Format current PINS input state for all unused pins */ if (CFG_HasFlag(OBK_FLAG_HTTP_PINMONITOR)) { - for (i = 0; i < 29; i++) + for (i = 0; i < PLATFORM_GPIO_MAX; i++) { if ((PIN_GetPinRoleForPinIndex(i) == IOR_None) && (i != 0) && (i != 1)) { @@ -1009,7 +1009,7 @@ typedef enum { } hprintf255(request, "