mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +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
|
||||
}
|
||||
if (LB_Charge_Power_Limit_Watts < 0) {
|
||||
system_max_charge_power_W = 0; //cap calue so we dont do under the Fronius limits
|
||||
} else {
|
||||
else {
|
||||
system_max_charge_power_W = LB_Charge_Power_Limit_Watts;
|
||||
}
|
||||
if (system_scaled_SOC_pptt == 10000) //Scaled SOC% value is 100.00%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue