From d5af370d7121a6e0c4fc9f3abd53458ee552228e Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 2 Mar 2019 20:46:12 +1030 Subject: [PATCH] cmd/revid-cli: corrected value assignment for an undefined pin when revid is not yet initialised --- cmd/revid-cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 59c9b00e..625d9356 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -268,7 +268,7 @@ func run(cfg revid.Config) { switch { case pin.Name == "X23": if rv == nil { - pin.Value = 0 + pin.Value = -1 } pin.Value = rv.Bitrate() case pin.Name[0] == 'X':