mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Add user configurable BMS reset off time
This commit is contained in:
parent
3612e18452
commit
bdaa198886
5 changed files with 27 additions and 3 deletions
|
@ -656,6 +656,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