repeatingPlanning returns true if the current plan is a repeating plan
()
| 1042 | |
| 1043 | // repeatingPlanning returns true if the current plan is a repeating plan |
| 1044 | func (lp *Loadpoint) repeatingPlanning() bool { |
| 1045 | if !lp.socBasedPlanning() { |
| 1046 | return false |
| 1047 | } |
| 1048 | return lp.getPlanId() > 1 |
| 1049 | } |
| 1050 | |
| 1051 | // vehicleHasSoc returns true if active vehicle supports returning soc, i.e. it is not an offline vehicle |
| 1052 | func (lp *Loadpoint) vehicleHasSoc() bool { |
no test coverage detected