update every SENSOR_READ_TIME
This commit is contained in:
parent
fe659e2a12
commit
0e40f9f4b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue