Skip to content

Commit 422f589

Browse files
committed
Very small bugfix in the LPP Event Handler of the hems example
1 parent 1edb43f commit 422f589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hems/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (h *hems) OnLPPEvent(ski string, device spineapi.DeviceRemoteInterface, ent
179179
h.uccslpp.ApproveOrDenyProductionLimit(msgCounter, true, "")
180180
}
181181
case cslpp.DataUpdateLimit:
182-
if currentLimit, err := h.uccslpp.ProductionLimit(); err != nil {
182+
if currentLimit, err := h.uccslpp.ProductionLimit(); err == nil {
183183
fmt.Println("New LPP Limit set to", currentLimit.Value, "W")
184184
}
185185
}

0 commit comments

Comments
 (0)