Skip to content

Commit

Permalink
fix(plc4go/bacnet): ErrorCode and ErrorClass
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed May 23, 2022
1 parent 83c31a4 commit 17d7dbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func ReadEnumGeneric(readBuffer utils.ReadBuffer, actualLength uint32, template
}

switch template.(type) {
case ErrorClass:
return ErrorClass(rawValue), nil
case ErrorCode:
return ErrorCode(rawValue), nil
case BACnetAccessAuthenticationFactorDisable:
return BACnetAccessAuthenticationFactorDisable(rawValue), nil
case BACnetAccessCredentialDisable:
Expand Down

0 comments on commit 17d7dbe

Please sign in to comment.