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 {
|
readPin := func(pin *netsender.Pin) error {
|
||||||
switch {
|
switch {
|
||||||
case pin.Name == "X23":
|
case pin.Name == "X23":
|
||||||
if rv == nil {
|
|
||||||
pin.Value = -1
|
pin.Value = -1
|
||||||
} else {
|
if rv != nil {
|
||||||
pin.Value = rv.Bitrate()
|
pin.Value = rv.Bitrate()
|
||||||
}
|
}
|
||||||
case pin.Name[0] == 'X':
|
case pin.Name[0] == 'X':
|
||||||
|
|
Loading…
Reference in New Issue