From ac02e1470d24b53a53d914dd2faea85507ede9ed Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sat, 29 Jun 2024 02:33:01 +0200 Subject: [PATCH] Bugfix for light sensor --- src/lib/config.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/config.cpp b/src/lib/config.cpp index 67d520c..985d3a1 100644 --- a/src/lib/config.cpp +++ b/src/lib/config.cpp @@ -752,6 +752,10 @@ void setupFrontlight() float getLightLevel() { return bh1750.readLightLevel(); } + +bool hasLightLevel() { + return hasLuxSensor; +} #endif String getHwRev() @@ -785,7 +789,4 @@ String getFsRev() return ret; } -bool hasLightLevel() { - return hasLuxSensor; -}