mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
Merge branch 'main' into feature/configurable-BMS-reset-delay
This commit is contained in:
commit
36318b4bb4
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,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