Add confirmation to apply interface

This commit is contained in:
Daniel Öster 2025-03-04 20:13:02 +02:00
parent effd80cc58
commit 0398cda44b
2 changed files with 13 additions and 6 deletions

View file

@ -236,9 +236,9 @@ void init_webserver() {
datalayer.system.info.can_replay_interface = interfaceValue;
// Respond with success message
request->send(200, "text/plain", "CAN Interface Updated to " + canInterface);
request->send(200, "text/plain", "New interface selected");
} else {
request->send(400, "text/plain", "Error: Missing parameter 'interface'");
request->send(400, "text/plain", "Error: updating interface failed");
}
});