mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Merge from main and fix a conflict
This commit is contained in:
commit
ea512b3348
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue