mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Merge pull request #1343 from dalathegreat/feature/configurable-BMS-reset-delay
Feature: Add user configurable BMS reset off time
This commit is contained in:
commit
2b6ad122bb
5 changed files with 27 additions and 3 deletions
|
@ -657,6 +657,11 @@ void init_webserver() {
|
|||
datalayer.battery.settings.max_user_set_discharge_voltage_dV = static_cast<uint16_t>(value.toFloat() * 10);
|
||||
});
|
||||
|
||||
// Route for editing BMSresetDuration
|
||||
update_string_setting("/updateBMSresetDuration", [](String value) {
|
||||
datalayer.battery.settings.user_set_bms_reset_duration_ms = static_cast<uint16_t>(value.toFloat() * 1000);
|
||||
});
|
||||
|
||||
// Route for editing FakeBatteryVoltage
|
||||
update_string_setting("/updateFakeBatteryVoltage", [](String value) { battery->set_fake_voltage(value.toFloat()); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue