Skip to content

Commit

Permalink
Sunspec: fix invalid entry to model cache
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 28, 2024
1 parent 6505a04 commit 4458043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/sunspec_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 4458043

Please sign in to comment.