Fix planner crashing on estimator nil for guest vehicle
This commit is contained in:
parent
c9e8ee27ae
commit
36be9668a8
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ func (lp *Loadpoint) plannerActive() (active bool) {
|
|||
lp.publish(targetTimeActive, active)
|
||||
}()
|
||||
|
||||
if lp.planner == nil || lp.targetTime.IsZero() {
|
||||
if lp.planner == nil || lp.socEstimator == nil || lp.targetTime.IsZero() {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue