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

old-commit-hash: 7ce9ff1b0420e5e371570e7d69deb5c19d41ec0f
This commit is contained in:
Dean Lee
2021-11-20 12:40:29 +08:00
committed by GitHub
parent bb0c6b7314
commit 3492b1290f
+1 -1
View File
@@ -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;