Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions usecases/cs/lpc/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ func (e *LPC) ConsumptionLimit() (limit ucapi.LoadLimit, resultErr error) {
if value.TimePeriod != nil && value.TimePeriod.EndTime != nil {
if duration, err := value.TimePeriod.GetDuration(); err == nil {
limit.Duration = duration
if limit.Duration == 0 {
// according to EEBus UC Implementation Guideline for LPC v1.0.0 section 2.2 item 1
limit.IsActive = false
}
}
}

Expand Down
5 changes: 5 additions & 0 deletions usecases/cs/lpp/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ func (e *LPP) ProductionLimit() (limit ucapi.LoadLimit, resultErr error) {
if value.TimePeriod != nil && value.TimePeriod.EndTime != nil {
if duration, err := value.TimePeriod.GetDuration(); err == nil {
limit.Duration = duration
if limit.Duration == 0 {
// according to EEBus UC Implementation Guideline for LPC v1.0.0 section 2.2 item 1
// no IG exists for LPP at the moment, we assume the same should be valid here as well
limit.IsActive = false
}
}
}

Expand Down
Loading