Sunspec: fix invalid entry to model cache
Some checks failed
Some checks failed
This commit is contained in:
parent
6505a046bc
commit
4458043e92
1 changed files with 1 additions and 1 deletions
|
|
@ -51,5 +51,5 @@ func (c *sunspecSubDeviceCache) Put(conn *modbus.Connection, subDevice int, dev
|
|||
}
|
||||
|
||||
func sunspecSubdeviceAddr(conn *modbus.Connection, subDevice int) string {
|
||||
return conn.String() + "::" + strconv.Itoa(subDevice)
|
||||
return conn.Addr() + "::" + strconv.Itoa(subDevice)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue