Skip to content

Commit

Permalink
H7: explicitly disable GMLAN for now (commaai#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Jul 24, 2023
1 parent 933a19a commit ed8ff7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions board/drivers/gmlan_alt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -285,5 +286,8 @@ bool bitbang_gmlan(CANPacket_t *to_bang) {
// 33kbps
setup_timer();
}
#else
UNUSED(to_bang);
#endif
return gmlan_send_ok;
}

0 comments on commit ed8ff7e

Please sign in to comment.