aboutsummaryrefslogtreecommitdiff
path: root/sensor_als.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-14 11:46:12 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-07-14 11:46:12 +0800
commitea652045bb38651d99bcc53972a524f602c3b306 (patch)
treeea7bf5f5b3f0a76faf07bfeb944b3a56f6afd527 /sensor_als.hpp
parente5aac499a8a2026af5d5176f45be3ac2576d75cc (diff)
downloadlightsd-ea652045bb38651d99bcc53972a524f602c3b306.tar.xz
Added a simple tool to create a fake sysfs backlight interface
that invokes external commands. Some changes in the utility module to accomodate the new tool. Added an option to watch ALS readings.
Diffstat (limited to 'sensor_als.hpp')
-rw-r--r--sensor_als.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sensor_als.hpp b/sensor_als.hpp
index a010f2d..891af55 100644
--- a/sensor_als.hpp
+++ b/sensor_als.hpp
@@ -7,9 +7,11 @@ class SensorALS:public SensorBase
{
private:
float value;
+ bool debug=false;
protected:
void enable_scan_elements();
public:
+ void set_debug(bool d);
void update_values();
float get_value();
};