Merge pull request #99 from lirudy/0.8.7

fix: vw white panda with j533 acc error
This commit is contained in:
eFini
2021-08-31 22:09:35 +10:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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']
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;