mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Fix constructors
This commit is contained in:
parent
de552e434e
commit
dd18896e81
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class BydAttoBattery : public CanBattery {
|
|||
}
|
||||
|
||||
// Use the default constructor to create the first or single battery.
|
||||
BydAttoBattery() {
|
||||
BydAttoBattery() : renderer(&datalayer_extended.bydAtto3) {
|
||||
datalayer_battery = &datalayer.battery;
|
||||
allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing;
|
||||
datalayer_bydatto = &datalayer_extended.bydAtto3;
|
||||
|
|
|
@ -23,7 +23,7 @@ class KiaHyundai64Battery : public CanBattery {
|
|||
}
|
||||
|
||||
// Use the default constructor to create the first or single battery.
|
||||
KiaHyundai64Battery() {
|
||||
KiaHyundai64Battery() : renderer(&datalayer_extended.KiaHyundai64) {
|
||||
datalayer_battery = &datalayer.battery;
|
||||
allows_contactor_closing = &datalayer.system.status.battery_allows_contactor_closing;
|
||||
contactor_closing_allowed = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue