Skip to content

Commit

Permalink
Fix blanking screen on reverse gear
Browse files Browse the repository at this point in the history
  • Loading branch information
martinl committed Jul 9, 2020
1 parent afcb5f4 commit e32e6cf
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -821,14 +821,13 @@ int main(int argc, char* argv[]) {
if (s->started) {
s->controls_timeout = 5 * UI_FREQ;
}
/*
// reverse gear
else if (s->scene.gear == 4) {
set_awake(s, false);
*/
} else {

set_awake(s, true);
// blank screen on reverse gear
if (s->scene.gear == 4) {
set_awake(s, false);
} else {
set_awake(s, true);
}
// Car started, fetch a new rgb image from ipc
if (s->vision_connected){
ui_update(s);
Expand Down

0 comments on commit e32e6cf

Please sign in to comment.