ui/device: change last_brightness from float to int (#23029)

old-commit-hash: e376a621baa125063ffbf1fbd91560e25d45e8fd
This commit is contained in:
Dean Lee
2021-11-26 21:59:23 +08:00
committed by GitHub
parent 1e87522804
commit 5f299f7f3e
+1 -1
View File
@@ -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;