IsFastChargingActive indicates if fast charging with maximum power is active
()
| 784 | |
| 785 | // IsFastChargingActive indicates if fast charging with maximum power is active |
| 786 | func (lp *Loadpoint) IsFastChargingActive() bool { |
| 787 | lp.RLock() |
| 788 | defer lp.RUnlock() |
| 789 | |
| 790 | return lp.mode == api.ModeNow || lp.planActive || lp.minSocNotReached() |
| 791 | } |
| 792 | |
| 793 | // GetRemainingDuration is the estimated remaining charging duration |
| 794 | func (lp *Loadpoint) GetRemainingDuration() time.Duration { |
nothing calls this directly
no test coverage detected