mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Increase max capacity from 120kWh to 400kWh
This commit is contained in:
parent
91a32e60c2
commit
d03050963a
1 changed files with 3 additions and 3 deletions
|
@ -515,10 +515,10 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
if(value!==null){if(value>=0&&value<=15){var xhr=new XMLHttpRequest();xhr.onload=editComplete;xhr.onerror=editError;xhr.open('GET','/updateSofarID?value='+value,true);xhr.send();}
|
||||
else {alert('Invalid value. Please enter a value between 0 and 15.');}}}
|
||||
|
||||
function editWh(){var value=prompt('How much energy the battery can store. Enter new Wh value (1-120000):');
|
||||
if(value!==null){if(value>=1&&value<=120000){var xhr=new
|
||||
function editWh(){var value=prompt('How much energy the battery can store. Enter new Wh value (1-400000):');
|
||||
if(value!==null){if(value>=1&&value<=400000){var xhr=new
|
||||
XMLHttpRequest();xhr.onload=editComplete;xhr.onerror=editError;xhr.open('GET','/updateBatterySize?value='+value,true);xhr.send();}else{
|
||||
alert('Invalid value. Please enter a value between 1 and 120000.');}}}
|
||||
alert('Invalid value. Please enter a value between 1 and 400000.');}}}
|
||||
|
||||
function editUseScaledSOC(){var value=prompt('Extends battery life by rescaling the SOC within the configured minimum and maximum percentage. Should SOC scaling be applied? (0 = No, 1 = Yes):');
|
||||
if(value!==null){if(value==0||value==1){var xhr=new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue