mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Make tests pass
This commit is contained in:
parent
024ff58965
commit
12cc542a42
44 changed files with 362 additions and 259 deletions
|
@ -15,4 +15,22 @@ int max(int a, int b) {
|
|||
return (a > b) ? a : b;
|
||||
}
|
||||
|
||||
// Mock implementation for OBD
|
||||
#include "../../Software/src/communication/can/obd.h"
|
||||
void handle_obd_frame(CAN_frame& frame) {
|
||||
(void)frame;
|
||||
}
|
||||
void transmit_obd_can_frame(unsigned int address, int interface, bool canFD) {
|
||||
(void)interface;
|
||||
}
|
||||
|
||||
void start_bms_reset() {}
|
||||
|
||||
#include "../../Software/src/communication/rs485/comm_rs485.h"
|
||||
|
||||
// Mock implementation
|
||||
void register_receiver(Rs485Receiver* receiver) {
|
||||
(void)receiver; // Silence unused parameter warning
|
||||
}
|
||||
|
||||
ESPClass ESP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue