You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/05/23 13:48:16 UTC
[plc4x] branch develop updated: fix(plc4go/bacnet): ErrorCode and ErrorClass
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 17d7dbe435 fix(plc4go/bacnet): ErrorCode and ErrorClass
17d7dbe435 is described below
commit 17d7dbe435c39800b51c93c421852eafafc7340f
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Mon May 23 15:48:09 2022 +0200
fix(plc4go/bacnet): ErrorCode and ErrorClass
---
plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go b/plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go
index 2d3934252f..055b3a7c46 100644
--- a/plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go
+++ b/plc4go/protocols/bacnetip/readwrite/model/StaticHelper.go
@@ -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: