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/08/03 15:56:32 UTC
[plc4x] branch develop updated: fix(plc4go): fix linting errors
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 8035c45ce fix(plc4go): fix linting errors
8035c45ce is described below
commit 8035c45ceccc39309e350a4bbc97f30b0bc1f649
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Aug 3 17:56:24 2022 +0200
fix(plc4go): fix linting errors
---
plc4go/internal/cbus/Connection.go | 4 ++--
plc4go/internal/cbus/fieldtype_string.go | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/plc4go/internal/cbus/Connection.go b/plc4go/internal/cbus/Connection.go
index 24d6a9702..18fd8a0e6 100644
--- a/plc4go/internal/cbus/Connection.go
+++ b/plc4go/internal/cbus/Connection.go
@@ -275,7 +275,7 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
for monitoredSal := range c.messageCodec.(*MessageCodec).monitoredSALs {
for _, subscriber := range c.subscribers {
if ok := subscriber.handleMonitoredSal(monitoredSal); ok {
- log.Debug().Msgf("%s handled\n%s", subscriber, monitoredSal)
+ log.Debug().Msgf("%v handled\n%s", subscriber, monitoredSal)
}
}
}
@@ -301,7 +301,7 @@ func (c *Connection) setupConnection(ch chan plc4go.PlcConnectionConnectResult)
for _, subscriber := range c.subscribers {
calReply := encodedReply.GetCalReply()
if ok := subscriber.handleMonitoredMMI(calReply); ok {
- log.Debug().Msgf("%s handled\n%s", subscriber, calReply)
+ log.Debug().Msgf("%v handled\n%s", subscriber, calReply)
}
}
}
diff --git a/plc4go/internal/cbus/fieldtype_string.go b/plc4go/internal/cbus/fieldtype_string.go
index f32a0dd95..dd663f49a 100644
--- a/plc4go/internal/cbus/fieldtype_string.go
+++ b/plc4go/internal/cbus/fieldtype_string.go
@@ -30,11 +30,12 @@ func _() {
_ = x[CAL_IDENTIFY-2]
_ = x[CAL_GETSTATUS-3]
_ = x[SAL_MONITOR-4]
+ _ = x[MMI_STATUS_MONITOR-5]
}
-const _FieldType_name = "STATUSCAL_RECALLCAL_IDENTIFYCAL_GETSTATUSSAL_MONITOR"
+const _FieldType_name = "STATUSCAL_RECALLCAL_IDENTIFYCAL_GETSTATUSSAL_MONITORMMI_STATUS_MONITOR"
-var _FieldType_index = [...]uint8{0, 6, 16, 28, 41, 52}
+var _FieldType_index = [...]uint8{0, 6, 16, 28, 41, 52, 70}
func (i FieldType) String() string {
if i >= FieldType(len(_FieldType_index)-1) {