mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Merge pull request #1516 from dalathegreat/bugfix/double-renault50-bug
Bugfix: Double Renault Zoe2 not initializing
This commit is contained in:
commit
47ceaf9a7b
2 changed files with 7 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
#endif
|
||||
|
||||
// The current software version, shown on webserver
|
||||
const char* version_number = "9.0.RC8";
|
||||
const char* version_number = "9.0.RC9experimental";
|
||||
|
||||
// Interval timers
|
||||
volatile unsigned long currentMillis = 0;
|
||||
|
|
|
@ -268,9 +268,15 @@ void setup_battery() {
|
|||
case BatteryType::RenaultZoe1:
|
||||
battery2 = new RenaultZoeGen1Battery(&datalayer.battery2, nullptr, can_config.battery_double);
|
||||
break;
|
||||
case BatteryType::RenaultZoe2:
|
||||
battery2 = new RenaultZoeGen2Battery(&datalayer.battery2, nullptr, can_config.battery_double);
|
||||
break;
|
||||
case BatteryType::TestFake:
|
||||
battery2 = new TestFakeBattery(&datalayer.battery2, can_config.battery_double);
|
||||
break;
|
||||
default:
|
||||
DEBUG_PRINTF("User tried enabling double battery on non-supported integration!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
if (battery2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue