From 47028b70c25c00a3b3aa0281bb031a200737e35c Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Wed, 25 May 2022 15:12:15 +0930 Subject: [PATCH] cmd/rv/main.go: This resolves issue #370. Removing default statement in readPin so that netsender net speed values are kept --- cmd/rv/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/rv/main.go b/cmd/rv/main.go index b189b906..53b91346 100644 --- a/cmd/rv/main.go +++ b/cmd/rv/main.go @@ -317,8 +317,6 @@ func readPin(p *turbidityProbe, rv *revid.Revid, l *logger.Logger) func(pin *net l.Debug("setting contrast pin", "contrast", p.contrast) pin.Value = int(p.contrast * 100) } - default: - pin.Value = -1 } return nil }