Also adjusted timer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-23 22:23:06 +01:00
parent ca976b1143
commit abda5cc24f

View File

@@ -35,7 +35,7 @@ func NewLightSensor(info Info, client paho.Client) *lightSensor {
l.minValue = 15000
l.maxValue = 18000
l.timeout = time.Minute
l.timeout = 5 * time.Minute
l.timer = time.NewTimer(l.timeout)
l.timer.Stop()