Skip to content

Commit ac02e14

Browse files
committed
Bugfix for light sensor
1 parent fb67893 commit ac02e14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/config.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,10 @@ void setupFrontlight()
752752
float getLightLevel() {
753753
return bh1750.readLightLevel();
754754
}
755+
756+
bool hasLightLevel() {
757+
return hasLuxSensor;
758+
}
755759
#endif
756760

757761
String getHwRev()
@@ -785,7 +789,4 @@ String getFsRev()
785789
return ret;
786790
}
787791

788-
bool hasLightLevel() {
789-
return hasLuxSensor;
790-
}
791792

0 commit comments

Comments
 (0)