chargerUpdateCompleted returns true if enable command should be already processed by the charger (so we can try to sync charger and loadpoint)
()
| 1977 | |
| 1978 | // chargerUpdateCompleted returns true if enable command should be already processed by the charger (so we can try to sync charger and loadpoint) |
| 1979 | func (lp *Loadpoint) chargerUpdateCompleted() bool { |
| 1980 | return time.Since(lp.chargerSwitched) > chargerSwitchDuration |
| 1981 | } |
| 1982 | |
| 1983 | // phaseSwitchCompleted returns true if phase switch command should be already processed by the charger (so we can try to sync charger and loadpoint and are able to measure currents) |
| 1984 | func (lp *Loadpoint) phaseSwitchCompleted() bool { |
no outgoing calls
no test coverage detected