From b5932d1d22d35cef95eb1cffbf489619b264442d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 6 Jul 2018 21:25:39 +0800 Subject: Random code clean-ups to get ready for the next update. Also tweaked the config a little bit. --- brightness_ctrl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'brightness_ctrl.hpp') diff --git a/brightness_ctrl.hpp b/brightness_ctrl.hpp index 5beb0ec..c1e8a34 100644 --- a/brightness_ctrl.hpp +++ b/brightness_ctrl.hpp @@ -2,8 +2,9 @@ #define BRIGHTNESS_CTRL_HPP #include #include -#include +#include #include +#include #include #include "sensor_als.hpp" class BrightnessControl @@ -14,7 +15,7 @@ private: int delay,direction,br,maxbr,minabr,tr,offset; size_t cur; SensorALS *als; - std::mutex interrupt_m,threshnotify_m; + std::mutex interrupt_m,threshnotify_m,adjust_m; std::condition_variable interrupt,threshnotify; void _brightness_slide(int p); public: -- cgit v1.2.3