mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
17 lines
249 B
C++
17 lines
249 B
C++
#include "../include.h"
|
|
#include "Shunt.h"
|
|
|
|
CanShunt* shunt = nullptr;
|
|
|
|
void setup_can_shunt() {
|
|
if (shunt) {
|
|
return;
|
|
}
|
|
|
|
#if defined(SELECTED_SHUNT_CLASS)
|
|
shunt = new SELECTED_SHUNT_CLASS();
|
|
if (shunt) {
|
|
shunt->setup();
|
|
}
|
|
#endif
|
|
}
|