diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index 625d9356..dda75858 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -267,10 +267,10 @@ func run(cfg revid.Config) { readPin := func(pin *netsender.Pin) error { switch { case pin.Name == "X23": - if rv == nil { - pin.Value = -1 + pin.Value = -1 + if rv != nil { + pin.Value = rv.Bitrate() } - pin.Value = rv.Bitrate() case pin.Name[0] == 'X': return sds.ReadSystem(pin) default: