From ed8ff7e48ad41b5b7c0ce9df5bb2bb5024b6429d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 24 Jul 2023 15:01:19 -0700 Subject: [PATCH] H7: explicitly disable GMLAN for now (#1532) --- board/drivers/gmlan_alt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/drivers/gmlan_alt.h b/board/drivers/gmlan_alt.h index 266a683e6e..53f46c2e02 100644 --- a/board/drivers/gmlan_alt.h +++ b/board/drivers/gmlan_alt.h @@ -272,6 +272,7 @@ bool bitbang_gmlan(CANPacket_t *to_bang) { gmlan_send_ok = true; gmlan_alt_mode = BITBANG; +#ifndef STM32H7 if (gmlan_sendmax == -1) { int len = get_bit_message(pkt_stuffed, to_bang); gmlan_fail_count = 0; @@ -285,5 +286,8 @@ bool bitbang_gmlan(CANPacket_t *to_bang) { // 33kbps setup_timer(); } +#else + UNUSED(to_bang); +#endif return gmlan_send_ok; }