Skip to content

Commit

Permalink
fixed missing parameter set MASTER of device
Browse files Browse the repository at this point in the history
  • Loading branch information
mdzio committed Mar 8, 2020
1 parent 21e461d commit 23b7a97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ".."
Expand Down
25 changes: 12 additions & 13 deletions vmodel/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(&paramset{
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(&paramset{
id: psID,
address: descr.Address,
itfClient: cln,
BasicItem: model.BasicItem{
Collection: dev,
CollectionRole: "device",
},
})
}
}

Expand Down

0 comments on commit 23b7a97

Please sign in to comment.