Fix constructors

This commit is contained in:
Jaakko Haakana 2025-06-01 11:26:18 +03:00
parent de552e434e
commit dd18896e81
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ class BydAttoBattery : public CanBattery {
} }
// Use the default constructor to create the first or single battery. // Use the default constructor to create the first or single battery.
BydAttoBattery() { BydAttoBattery() : renderer(&datalayer_extended.bydAtto3) {
datalayer_battery = &datalayer.battery; datalayer_battery = &datalayer.battery;
allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing; allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing;
datalayer_bydatto = &datalayer_extended.bydAtto3; datalayer_bydatto = &datalayer_extended.bydAtto3;

View file

@ -23,7 +23,7 @@ class KiaHyundai64Battery : public CanBattery {
} }
// Use the default constructor to create the first or single battery. // Use the default constructor to create the first or single battery.
KiaHyundai64Battery() { KiaHyundai64Battery() : renderer(&datalayer_extended.KiaHyundai64) {
datalayer_battery = &datalayer.battery; datalayer_battery = &datalayer.battery;
allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing; allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing;
contactor_closing_allowed = nullptr; contactor_closing_allowed = nullptr;