Skip to content

Commit

Permalink
zero out steering if no override is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Apr 29, 2024
1 parent 7c5ba7f commit b8f3eaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,8 @@ void populate_car_analog_control_patched(u32 param_1, int *param_2, unsigned cha
param_3[1] = param_3[1] | 2;
*steering = steering_override;
LOG_VERBOSE("applying steering override, val is %d, steering is %d", steering_override, *steering);
}else{
*steering = 0;
}

if(override_accel){
Expand Down

0 comments on commit b8f3eaa

Please sign in to comment.