diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 0ec254480..16d847fcc 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -2420,7 +2420,6 @@ int http_fn_cfg_pins(http_request_t* request) { if (!bSafeMode && CFG_HasFlag(OBK_FLAG_AUTOMAIC_HASS_DISCOVERY)) { Main_ScheduleHomeAssistantDiscovery(1); } - hprintf255(request, "Pins update - %i reqs, %i changed!

", iChangedRequested, iChanged); } // strcat(outbuf,""); @@ -2429,16 +2428,11 @@ int http_fn_cfg_pins(http_request_t* request) { int si, ch, ch2; int j; const char* alias; - // On BL602, any GPIO can be mapped to one of 5 PWM channels - // But on Beken chips, only certain pins can be PWM - int bCanThisPINbePWM; si = PIN_GetPinRoleForPinIndex(i); ch = PIN_GetPinChannelForPinIndex(i); ch2 = PIN_GetPinChannel2ForPinIndex(i); - bCanThisPINbePWM = HAL_PIN_CanThisPinBePWM(i); - // if available.. alias = HAL_PIN_GetPinNameAlias(i); poststr(request, "
"); @@ -2453,22 +2447,7 @@ int http_fn_cfg_pins(http_request_t* request) { else { hprintf255(request, "P%i ", i); } - hprintf255(request, "", i, i); poststr(request, ""); // Primary linked channel // Some roles do not need any channels @@ -2489,6 +2468,39 @@ int http_fn_cfg_pins(http_request_t* request) { } poststr(request, "
"); } + poststr(request, ""); poststr(request, ""); poststr(request, htmlFooterReturnToCfgOrMainPage);