check comma four id strap (#2513)

This commit is contained in:
Daniel Koepping
2026-11-28 11:50:18 -06:00
committed by firestar5683
parent 0fe8ff5368
commit 3f35a6928a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ void detect_board_type(void) {
if (id2 == 3U) {
hw_type = HW_TYPE_CUATRO;
current_board = &board_cuatro;
} else if (id1 == 0U) {
} else if ((get_package_smps_type() == PACKAGE_WITH_SMPS) && (id1 == 0U)) {
// id1 also reads 0 on cuatro, the package tells them apart
hw_type = HW_TYPE_RED_PANDA;
current_board = &board_red;
} else if (id1 == 1U) {
+1 -1
View File
@@ -72,12 +72,12 @@ separate IRQs for RX and TX.
#include "board/stm32h7/llmpu.h"
#endif
#include "board/stm32h7/clock.h"
#ifdef PANDA_BODY
#include "board/body/stm32h7/board.h"
#else
#include "board/stm32h7/board.h"
#endif
#include "board/stm32h7/clock.h"
#ifdef BOOTSTUB
#include "board/stm32h7/llflash.h"