From 28af1a9900488068fbf7bff5a550b5febbeee260 Mon Sep 17 00:00:00 2001 From: erg_samowzbudnik Date: Sun, 13 Jun 2021 11:06:06 +0200 Subject: added self to calculate_lux max_read, again --- monitor_unified.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor_unified.py') 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 -- cgit v1.2.3-65-gdbad