Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vw white panda with j533 acc error #99

Merged
merged 3 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion panda/board/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ else:
"-DPANDA",
]

if FindFile('dp_vw', '/data/params/d') != None:
if FindFile('dp_vw_panda', '/data/params/d') != None:
with open('/data/params/d/dp_vw_panda') as f:
if (int(f.read().strip())) == 1:
PROJECT_FLAGS += ['-Dvw']
Expand Down
2 changes: 1 addition & 1 deletion panda/board/power_saving.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void set_power_save_state(int state) {
// Volkswagen community port:
// If this is a White or Grey Panda, always keep the CAN transceivers
// powered up so that transparent forwarding is maintained.
current_board->enable_can_transceivers(board_has_obd() ? enable : true);
current_board->enable_can_transceivers(current_board->has_obd ? enable : true);
#else
current_board->enable_can_transceivers(enable);
#endif
Expand Down
2 changes: 1 addition & 1 deletion panda/board/safety/safety_defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static int default_fwd_hook(int bus_num, CAN_FIFOMailBox_TypeDef *to_fwd) {
// Don't do this for BP/C2, where we have Advanced Actual Relay Technology.
int bus_fwd = -1;

if(!board_has_relay()) {
if(hw_type == HW_TYPE_WHITE_PANDA || hw_type == HW_TYPE_GREY_PANDA) {
switch (bus_num) {
case 0:
bus_fwd = 2;
Expand Down