mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 09:03:57 +08:00
ui/device: fix uninitialized variable awake (#22983)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user