diff options
Diffstat (limited to 'monitor_unified.py')
-rw-r--r-- | monitor_unified.py | 2 |
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 |