Make dual LilyGo compile

This commit is contained in:
Daniel Öster 2024-08-06 14:40:57 +03:00
parent c34bc58c8a
commit 9d8e20ce56
3 changed files with 4 additions and 8 deletions

View file

@ -1,7 +1,7 @@
#ifndef BATTERIES_H
#define BATTERIES_H
#include "../../USER_SETTINGS.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h" // This include is annoying, consider defining a frame type in types.h
#ifdef BMW_I3_BATTERY
#include "BMW-I3-BATTERY.h"
@ -79,12 +79,7 @@
#include "SERIAL-LINK-RECEIVER-FROM-BATTERY.h"
#endif
#ifdef SERIAL_LINK_RECEIVER // The serial thing does its thing
void receive_can_battery();
#else
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h" // This include is annoying, consider defining a frame type in types.h
void receive_can_battery(CAN_frame_t rx_frame);
#endif
#ifdef CAN_FD
void receive_canfd_battery(CANFDMessage frame);
#endif

View file

@ -1,7 +1,6 @@
#include "../include.h"
#ifdef TEST_FAKE_BATTERY
#include "../datalayer/datalayer.h"
#include "../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
#include "TEST-FAKE-BATTERY.h"
/* Do not change code below unless you are sure what you are doing */