Fix bug with chargepower writing

This commit is contained in:
Daniel 2024-02-19 15:11:05 +02:00
parent 376a5f28be
commit fa42e0d830

View file

@ -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%