cmd/revid-cli: corrected value assignment for an undefined pin when revid is not yet initialised

This commit is contained in:
Saxon 2019-03-02 20:46:12 +10:30
parent 562c8effc3
commit d5af370d71
1 changed files with 1 additions and 1 deletions

View File

@ -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':