Skip to content

Commit

Permalink
gate SecOC variant on ALLOW_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Oct 2, 2024
1 parent b04294d commit f01d273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/safety/safety_toyota.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ static safety_config toyota_init(uint16_t param) {
const uint32_t TOYOTA_PARAM_LTA = 4UL << TOYOTA_PARAM_OFFSET;
const uint32_t TOYOTA_PARAM_SECOC_CAR = 8UL << TOYOTA_PARAM_OFFSET;

#ifdef ALLOW_DEBUG
toyota_secoc_car = GET_FLAG(param, TOYOTA_PARAM_SECOC_CAR);
#endif
toyota_alt_brake = GET_FLAG(param, TOYOTA_PARAM_ALT_BRAKE);
toyota_stock_longitudinal = GET_FLAG(param, TOYOTA_PARAM_STOCK_LONGITUDINAL);
toyota_lta = GET_FLAG(param, TOYOTA_PARAM_LTA);
Expand Down

0 comments on commit f01d273

Please sign in to comment.