mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
fix missing CAN-FD safety modes
This commit is contained in:
@@ -17,6 +17,10 @@
|
||||
#include "safety/safety_elm327.h"
|
||||
#include "safety/safety_body.h"
|
||||
|
||||
#ifdef STM32H7
|
||||
#define CANFD
|
||||
#endif
|
||||
|
||||
// CAN-FD only safety modes
|
||||
#ifdef CANFD
|
||||
#include "safety/safety_hyundai_hda2.h"
|
||||
|
||||
@@ -22,7 +22,7 @@ misra_f4_output=$( cat /tmp/misra/misra_f4_output.txt | grep -v ": information:
|
||||
|
||||
|
||||
printf "\nPANDA H7 CODE\n"
|
||||
cppcheck -DPANDA -DSTM32H7 -DCANFD -UPEDAL -DUID_BASE \
|
||||
cppcheck -DPANDA -DSTM32H7 -UPEDAL -DUID_BASE \
|
||||
--suppressions-list=suppressions.txt --suppress=*:*inc/* \
|
||||
-I $PANDA_DIR/board/ --dump --enable=all --inline-suppr --force \
|
||||
$PANDA_DIR/board/main.c 2>/tmp/misra/cppcheck_h7_output.txt
|
||||
|
||||
Reference in New Issue
Block a user