Skip to content

Commit

Permalink
block DAS_status2
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasloetkolben committed Oct 5, 2024
1 parent f5fa518 commit 4a73908
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/safety/safety_tesla.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ static int tesla_fwd_hook(int bus_num, int addr) {

if(bus_num == 2) {
bool block_msg = false;

if (addr == 0x389) {
block_msg = true;
}

if (addr == 0x488) {
block_msg = true;
}
Expand All @@ -170,6 +175,7 @@ static safety_config tesla_init(uint16_t param) {
static const CanMsg TESLA_M3_Y_TX_MSGS[] = {
{0x488, 0, 4}, // DAS_steeringControl
{0x2b9, 0, 8}, // DAS_control
{0x389, 0, 8}, // DAS_status2
};

tesla_longitudinal = GET_FLAG(param, TESLA_FLAG_LONGITUDINAL_CONTROL);
Expand Down

0 comments on commit 4a73908

Please sign in to comment.