Skip to content

Commit 6610a3d

Browse files
committed
maybe fix libpanda
1 parent 872b5c9 commit 6610a3d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/libpanda/SConscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ env = Environment(
2020
".",
2121
"../../board/",
2222
"../../../opendbc/",
23+
"../../../opendbc/safety/",
24+
"../../../opendbc/safety/board/",
2325
],
2426
)
2527
if system == "Darwin":

tests/libpanda/panda.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#include "fake_stm.h"
22
#include "config.h"
3-
#include "safety/board/can.h"
4-
#include "safety/board/drivers/can_common.h"
3+
#include "can.h"
54

65
bool can_init(uint8_t can_number) { return true; }
76
void process_can(uint8_t can_number) { }
8-
bool safety_tx_hook(CANPacket_t *to_send) { return 1; }
7+
//int safety_tx_hook(CANPacket_t *to_send) { return 1; }
98

109
typedef struct harness_configuration harness_configuration;
1110
void refresh_can_tx_slots_available(void);
@@ -16,6 +15,9 @@ void can_tx_comms_resume_spi(void) { };
1615
#include "faults.h"
1716
#include "libc.h"
1817
#include "boards/board_declarations.h"
18+
#include "safety/board/drivers/can_common.h"
19+
#include "safety/board/faults.h"
20+
#include "safety/safety.h"
1921
#include "main_definitions.h"
2022
#include "drivers/can_common.h"
2123

0 commit comments

Comments
 (0)