From 7ce9ff1b0420e5e371570e7d69deb5c19d41ec0f Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Sat, 20 Nov 2021 12:40:29 +0800 Subject: [PATCH] ui/device: fix uninitialized variable awake (#22983) --- selfdrive/ui/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index 46cbae63fb..fab68d3818 100644 --- a/selfdrive/ui/ui.h +++ b/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;