mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Merge pull request #1554 from mbuhansen/main
Kostal revert startup counter.
This commit is contained in:
commit
ee4981b6e1
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ void KostalInverterProtocol::update_values() {
|
|||
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 18); // Last current
|
||||
float2frame(CYCLIC_DATA, (float)datalayer.battery.status.current_dA / 10, 22); // Should be Avg current(1s)
|
||||
|
||||
// Close contactors after 20 battery info frames requested
|
||||
if (f2_startup_count > 20) {
|
||||
// Close contactors after 7 battery info frames requested
|
||||
if (f2_startup_count > 7) {
|
||||
datalayer.system.status.inverter_allows_contactor_closing = true;
|
||||
dbg_message("inverter_allows_contactor_closing -> true (info frame)");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue