mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Fix multiple defines, add ACAN locally
This commit is contained in:
parent
284c32cda8
commit
188812a565
11 changed files with 1993 additions and 11 deletions
|
@ -4,12 +4,9 @@
|
|||
#include "ESP32CAN.h"
|
||||
#include "config.h"
|
||||
|
||||
//#define DUAL_CAN //Enable this line to activate an isolated secondary CAN Bus using add-on MCP2515 controller (Needed for FoxESS inverters)
|
||||
|
||||
#ifdef DUAL_CAN
|
||||
#include "ACAN2515.h" //If this file is missing, install the ACAN2515 library
|
||||
#include "ACAN2515.h"
|
||||
extern ACAN2515 can;
|
||||
#endif
|
||||
extern bool dual_can;
|
||||
|
||||
extern uint16_t SOC;
|
||||
extern uint16_t StateOfHealth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue