From b755c577a5425d940b182ba8c7c8c6e6f2240aea Mon Sep 17 00:00:00 2001 From: Brian Rochford Date: Mon, 27 Feb 2023 13:46:56 +0000 Subject: [PATCH] Correcting duplicate value setting --- adapters/devices/sofar/lsw.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/adapters/devices/sofar/lsw.go b/adapters/devices/sofar/lsw.go index 9067acc..804925a 100644 --- a/adapters/devices/sofar/lsw.go +++ b/adapters/devices/sofar/lsw.go @@ -121,10 +121,6 @@ func readData(connPort ports.CommunicationPort, serialNumber uint) (map[string]i result[k] = v } - for k, v := range reply { - result[k] = v - } - reply, err = readRegisterRange(rrRatio, connPort, serialNumber) if err != nil { return nil, err