mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Fix bug with chargepower writing
This commit is contained in:
parent
376a5f28be
commit
fa42e0d830
1 changed files with 1 additions and 3 deletions
|
@ -88,9 +88,7 @@ void update_values_battery() { //This function maps all the values fetched via
|
||||||
{
|
{
|
||||||
system_max_charge_power_W = 60000; //cap value so we don't go over the uint16 limit
|
system_max_charge_power_W = 60000; //cap value so we don't go over the uint16 limit
|
||||||
}
|
}
|
||||||
if (LB_Charge_Power_Limit_Watts < 0) {
|
else {
|
||||||
system_max_charge_power_W = 0; //cap calue so we dont do under the Fronius limits
|
|
||||||
} else {
|
|
||||||
system_max_charge_power_W = LB_Charge_Power_Limit_Watts;
|
system_max_charge_power_W = LB_Charge_Power_Limit_Watts;
|
||||||
}
|
}
|
||||||
if (system_scaled_SOC_pptt == 10000) //Scaled SOC% value is 100.00%
|
if (system_scaled_SOC_pptt == 10000) //Scaled SOC% value is 100.00%
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue