aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerg_samowzbudnik <uinarf@autistici.org>2021-06-13 11:06:06 +0200
committererg_samowzbudnik <uinarf@autistici.org>2021-06-13 11:06:06 +0200
commit28af1a9900488068fbf7bff5a550b5febbeee260 (patch)
tree0d293af895f9c58d6612f0c150e058d8ec775fab
parentf945953ac007b8c98d05e578bbc931a0c69a4a51 (diff)
downloadRPGH-28af1a9900488068fbf7bff5a550b5febbeee260.tar.gz
RPGH-28af1a9900488068fbf7bff5a550b5febbeee260.tar.bz2
RPGH-28af1a9900488068fbf7bff5a550b5febbeee260.zip
added self to calculate_lux max_read, again
-rw-r--r--monitor_unified.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_unified.py b/monitor_unified.py
index f1ab3a8..3083e79 100644
--- a/monitor_unified.py
+++ b/monitor_unified.py
@@ -448,7 +448,7 @@ class Light(Sensor):
lux = self.nan
# normally broadband maxes out before infrared which makes visible
# drop which is clearly wrong hence:
- elif ch0 == max_read or ch1 == max_read:
+ elif ch0 == self.max_read or ch1 == self.max_read:
lux = self.nan
else:
ratio = ch1/ch0