mirror of https://bitbucket.org/ausocean/av.git
cmd/revid-cli: corrected value assignment for an undefined pin when revid is not yet initialised
This commit is contained in:
parent
562c8effc3
commit
d5af370d71
|
@ -268,7 +268,7 @@ func run(cfg revid.Config) {
|
||||||
switch {
|
switch {
|
||||||
case pin.Name == "X23":
|
case pin.Name == "X23":
|
||||||
if rv == nil {
|
if rv == nil {
|
||||||
pin.Value = 0
|
pin.Value = -1
|
||||||
}
|
}
|
||||||
pin.Value = rv.Bitrate()
|
pin.Value = rv.Bitrate()
|
||||||
case pin.Name[0] == 'X':
|
case pin.Name[0] == 'X':
|
||||||
|
|
Loading…
Reference in New Issue