mirror of https://bitbucket.org/ausocean/av.git
Made more idiomatic.
This commit is contained in:
parent
1c9dde3798
commit
313944de90
|
@ -267,9 +267,8 @@ func run(cfg revid.Config) {
|
|||
readPin := func(pin *netsender.Pin) error {
|
||||
switch {
|
||||
case pin.Name == "X23":
|
||||
if rv == nil {
|
||||
pin.Value = -1
|
||||
} else {
|
||||
pin.Value = -1
|
||||
if rv != nil {
|
||||
pin.Value = rv.Bitrate()
|
||||
}
|
||||
case pin.Name[0] == 'X':
|
||||
|
|
Loading…
Reference in New Issue