Persist phases/min/max current (BC) (#11571)

This commit is contained in:
andig 2024-01-27 11:25:27 +01:00 • committed by GitHub
parent 91592bbd26
commit 648fe0cfdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 216 additions and 271 deletions

View file

@ -35,11 +35,11 @@ type API interface {
// GetMinCurrent returns the min charging current
GetMinCurrent() float64
// SetMinCurrent sets the min charging current
SetMinCurrent(float64)
SetMinCurrent(float64) error
// GetMaxCurrent returns the max charging current
GetMaxCurrent() float64
// SetMaxCurrent sets the max charging current
SetMaxCurrent(float64)
SetMaxCurrent(float64) error
// GetMode returns the charge mode
GetMode() api.ChargeMode

View file

@ -480,9 +480,11 @@ func (mr *MockAPIMockRecorder) SetLimitSoc(arg0 any) *gomock.Call {
}
// SetMaxCurrent mocks base method.
func (m *MockAPI) SetMaxCurrent(arg0 float64) {
func (m *MockAPI) SetMaxCurrent(arg0 float64) error {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMaxCurrent", arg0)
ret := m.ctrl.Call(m, "SetMaxCurrent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetMaxCurrent indicates an expected call of SetMaxCurrent.
@ -492,9 +494,11 @@ func (mr *MockAPIMockRecorder) SetMaxCurrent(arg0 any) *gomock.Call {
}
// SetMinCurrent mocks base method.
func (m *MockAPI) SetMinCurrent(arg0 float64) {
func (m *MockAPI) SetMinCurrent(arg0 float64) error {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMinCurrent", arg0)
ret := m.ctrl.Call(m, "SetMinCurrent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetMinCurrent indicates an expected call of SetMinCurrent.