ui/device: fix uninitialized variable awake (#22983)

pull/22987/head
Dean Lee 3 years ago committed by GitHub
parent 08078acbd0
commit 7ce9ff1b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/ui.h

@ -188,7 +188,7 @@ private:
// auto brightness
const float accel_samples = 5*UI_FREQ;
bool awake;
bool awake = false;
int awake_timeout = 0;
float accel_prev = 0;
float gyro_prev = 0;

Loading…
Cancel
Save