diff --git a/build/main.go b/build/main.go index 7c762c9..3353871 100644 --- a/build/main.go +++ b/build/main.go @@ -12,7 +12,7 @@ import ( const ( logLevel = logging.InfoLevel appName = "ccu-jack" - appVersion = "0.8.0" + appVersion = "0.8.1" appPkg = "github.com/mdzio/ccu-jack" ldFlags = "-s -w -X main.appVersion=" + appVersion buildDir = ".." diff --git a/vmodel/device.go b/vmodel/device.go index 67ba118..57c22e8 100644 --- a/vmodel/device.go +++ b/vmodel/device.go @@ -191,20 +191,19 @@ func (d *DeviceCol) handleNew(n *deviceNotif) bool { // others (e.g. LINK, SERVICE) this is unclear. Especially with // battery operated devices these cannot be read immediately. // Therefore currently only MASTER is supported. - if psID != "VALUES" { - continue + if psID == "MASTER" { + // add parameter set as PV + deviceLog.Debug("Creating parameter set: ", psID) + dev.PutItem(¶mset{ + id: psID, + address: descr.Address, + itfClient: cln, + BasicItem: model.BasicItem{ + Collection: dev, + CollectionRole: "device", + }, + }) } - // add parameter set as PV - deviceLog.Debug("Creating parameter set: ", psID) - dev.PutItem(¶mset{ - id: psID, - address: descr.Address, - itfClient: cln, - BasicItem: model.BasicItem{ - Collection: dev, - CollectionRole: "device", - }, - }) } }