Allow button POST on press from web server (#2913)

This commit is contained in:
wilberforce 2021-12-14 15:08:01 +13:00 committed by GitHub
parent 80e2bfada3
commit 45e346cf1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,8 +390,6 @@ void WebServer::handle_switch_request(AsyncWebServerRequest *request, const UrlM
#ifdef USE_BUTTON
void WebServer::handle_button_request(AsyncWebServerRequest *request, const UrlMatch &match) {
for (button::Button *obj : App.get_buttons()) {
if (obj->is_internal())
continue;
if (obj->get_object_id() != match.id)
continue;