getPlanId returns the plan id of the current/next plan
()
| 109 | |
| 110 | // getPlanId returns the plan id of the current/next plan |
| 111 | func (lp *Loadpoint) getPlanId() int { |
| 112 | if lp.socBasedPlanning() { |
| 113 | _, _, id := lp.nextVehiclePlan() |
| 114 | return id |
| 115 | } |
| 116 | if lp.planEnergy > 0 { |
| 117 | return 1 |
| 118 | } |
| 119 | return 0 |
| 120 | } |
| 121 | |
| 122 | // EffectivePlanId returns the id for the current plan |
| 123 | func (lp *Loadpoint) EffectivePlanId() int { |
no test coverage detected