Fix unit tests after removal of USER_SETTINGS

This commit is contained in:
Daniel Öster 2025-09-02 21:56:30 +03:00
parent 53d40cbe51
commit 081d96e055
2 changed files with 26 additions and 1 deletions

View file

@ -1,5 +1,16 @@
#include "Arduino.h"
#include "../../Software/src/communication/can/comm_can.h"
// Provide the definition that was previously in USER_SETTINGS.cpp
volatile CAN_Configuration can_config = {
.battery = CAN_Interface::CAN_NATIVE,
.inverter = CAN_Interface::CAN_NATIVE,
.battery_double = CAN_Interface::CAN_NATIVE,
.charger = CAN_Interface::CAN_NATIVE,
.shunt = CAN_Interface::CAN_NATIVE
};
void delay(unsigned long ms) {}
void delayMicroseconds(unsigned long us) {}
int digitalRead(uint8_t pin) {