mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Add confirmation to apply interface
This commit is contained in:
parent
effd80cc58
commit
0398cda44b
2 changed files with 13 additions and 6 deletions
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue