Merge from main and fix a conflict

This commit is contained in:
Jaakko Haakana 2025-07-23 12:57:04 +03:00
commit ea512b3348
2 changed files with 2 additions and 2 deletions

View file

@ -533,7 +533,7 @@ void init_webserver() {
auto update_string = [](const char* route, std::function<void(String)> setter,
std::function<bool(String)> validator = nullptr) {
def_route_with_auth(route, server, HTTP_GET, [&](AsyncWebServerRequest* request) {
def_route_with_auth(route, server, HTTP_GET, [=](AsyncWebServerRequest* request) {
if (request->hasParam("value")) {
String value = request->getParam("value")->value();