resetPVTimer resets the pv enable/disable timer to disabled state
(typ ...string)
| 1266 | |
| 1267 | // resetPVTimer resets the pv enable/disable timer to disabled state |
| 1268 | func (lp *Loadpoint) resetPVTimer(typ ...string) { |
| 1269 | if lp.pvTimer.IsZero() { |
| 1270 | return |
| 1271 | } |
| 1272 | |
| 1273 | msg := "pv timer reset" |
| 1274 | if len(typ) == 1 { |
| 1275 | msg = fmt.Sprintf("pv %s timer reset", typ[0]) |
| 1276 | } |
| 1277 | lp.log.DEBUG.Println(msg) |
| 1278 | |
| 1279 | lp.pvTimer = time.Time{} |
| 1280 | lp.publishTimer(pvTimer, 0, timerInactive) |
| 1281 | } |
| 1282 | |
| 1283 | // resetPhaseTimer resets the phase switch timer to disabled state |
| 1284 | func (lp *Loadpoint) resetPhaseTimer() { |
no test coverage detected