Fix timer log message format

This commit is contained in:
andig 2022-02-16 10:17:50 +01:00
parent 7b42ce7070
commit bea4b8a55d

View file

@ -975,7 +975,7 @@ func (lp *LoadPoint) resetPVTimerIfRunning(typ ...string) {
msg := "pv timer reset"
if len(typ) == 1 {
msg = fmt.Sprintf("pv %s timer reset", typ)
msg = fmt.Sprintf("pv %s timer reset", typ[0])
}
lp.log.DEBUG.Printf(msg)