Add 50ms delay between temp sensor reads
This commit is contained in:
parent
017ac159de
commit
b94f3aefbb
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ func readSensors(hub *sentry.Hub) {
|
||||||
Set(tw)
|
Set(tw)
|
||||||
|
|
||||||
metrics.TemperatureSensorReadingStatus.WithLabelValues(sensor.Name, "ok").Inc()
|
metrics.TemperatureSensorReadingStatus.WithLabelValues(sensor.Name, "ok").Inc()
|
||||||
|
|
||||||
|
time.Sleep(50 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Throw away reading if any sensor failed
|
// Throw away reading if any sensor failed
|
||||||
|
|
Loading…
Reference in a new issue