diff --git a/charger/eebus.go b/charger/eebus.go index 985d6c956..408f5ec14 100644 --- a/charger/eebus.go +++ b/charger/eebus.go @@ -300,11 +300,11 @@ func (c *EEBus) Enable(enable bool) error { return c.writeCurrentLimitData([]float64{data.EVData.LimitsL1.Max, data.EVData.LimitsL2.Max, data.EVData.LimitsL3.Max}) } - // in non now mode only enable with min settings, so we don't excessivly consume power in case it has to be turned of in the next cycle anyways + // in non now mode only enable with min settings, so we don't excessively consume power in case it has to be turned of in the next cycle anyways return c.writeCurrentLimitData([]float64{data.EVData.LimitsL1.Min, data.EVData.LimitsL2.Min, data.EVData.LimitsL3.Min}) } -// returns true if the connected EV supports charging recommandation +// returns true if the connected EV supports charging recommendation func (c *EEBus) optimizationSelfConsumptionAvailable() bool { data, err := c.cc.GetData() if err == nil { diff --git a/core/coordinator.go b/core/coordinator.go index 62142825a..1f2c177c2 100644 --- a/core/coordinator.go +++ b/core/coordinator.go @@ -17,7 +17,7 @@ func init() { } } -func (lp *vehicleCoordinator) aquire(owner interface{}, vehicle api.Vehicle) { +func (lp *vehicleCoordinator) acquire(owner interface{}, vehicle api.Vehicle) { lp.tracked[vehicle] = owner } diff --git a/core/coordinator_test.go b/core/coordinator_test.go index 8d88cd6a0..84a937fcf 100644 --- a/core/coordinator_test.go +++ b/core/coordinator_test.go @@ -54,7 +54,7 @@ func TestVehicleDetectByStatus(t *testing.T) { } if res != nil { - c.aquire(lp, res) + c.acquire(lp, res) } else { c.release(res) } diff --git a/core/loadpoint.go b/core/loadpoint.go index 9fceb8d54..a59ea4f75 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -796,7 +796,7 @@ func (lp *LoadPoint) setActiveVehicle(vehicle api.Vehicle) { } to := "unknown" if vehicle != nil { - coordinator.aquire(lp, vehicle) + coordinator.acquire(lp, vehicle) to = vehicle.Title() } lp.log.INFO.Printf("vehicle updated: %s -> %s", from, to)