Merge pull request #1554 from mbuhansen/main

Kostal revert startup counter.
This commit is contained in:
Daniel Öster 2025-09-20 22:34:04 +03:00 committed by GitHub
commit ee4981b6e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)");
}