Skip to content

Commit

Permalink
Bugfix: OCPP 1.6 charge point example panic when key is unknown #326
Browse files Browse the repository at this point in the history
  • Loading branch information
libreleee authored and lorenzodonini committed Jan 1, 2025
1 parent db05927 commit 492fb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/1.6/cp/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (handler *ChargePointHandler) OnGetConfiguration(request *core.GetConfigura
for _, key := range request.Key {
configKey, ok := handler.configuration[key]
if !ok {
unknownKeys = append(unknownKeys, *configKey.Value)
unknownKeys = append(unknownKeys, key)
} else {
resultKeys = append(resultKeys, configKey)
}
Expand Down

0 comments on commit 492fb92

Please sign in to comment.