update every SENSOR_READ_TIME

This commit is contained in:
brentru 2020-09-21 18:08:05 -04:00
parent fe659e2a12
commit 0e40f9f4b8

View file

@ -146,7 +146,7 @@ while True:
# Poll for new messages on feed_relay
client.loop()
now = time.monotonic()
if now - start_time > 3.0:
if now - start_time > SENSOR_READ_TIME:
# Read light sensor
print("Reading light sensor")
sensor_value = sensor.lux