mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
18 lines
293 B
C++
18 lines
293 B
C++
#include "../include.h"
|
|
|
|
InverterProtocol* inverter = nullptr;
|
|
|
|
void setup_inverter() {
|
|
if (inverter) {
|
|
// The inverter is setup only once.
|
|
return;
|
|
}
|
|
|
|
#ifdef SELECTED_INVERTER_CLASS
|
|
inverter = new SELECTED_INVERTER_CLASS();
|
|
|
|
if (inverter) {
|
|
inverter->setup();
|
|
}
|
|
#endif
|
|
}
|