From e376a621baa125063ffbf1fbd91560e25d45e8fd Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 26 Nov 2021 21:59:23 +0800 Subject: [PATCH] ui/device: change last_brightness from float to int (#23029) --- 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 fab68d3818..c341d06aa2 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -192,7 +192,7 @@ private: int awake_timeout = 0; float accel_prev = 0; float gyro_prev = 0; - float last_brightness = 0; + int last_brightness = 0; FirstOrderFilter brightness_filter; QTimer *timer;