summaryrefslogtreecommitdiff
path: root/src/rhctl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-18 19:53:07 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-18 19:53:07 (GMT)
commit0174146eb468888ac27bc5ae78b7a20dcd06f565 (patch)
treeac6062671b7e8e6acedbf7e134d2fbcea6345feb /src/rhctl
parent5db809ecc7794fe45401aa50e5064eb90031fcee (diff)
only send switch status update if parsing was a succes
Diffstat (limited to 'src/rhctl')
-rw-r--r--src/rhctl/audio_switch.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rhctl/audio_switch.go b/src/rhctl/audio_switch.go
index 0f89ee7..8c698b4 100644
--- a/src/rhctl/audio_switch.go
+++ b/src/rhctl/audio_switch.go
@@ -150,6 +150,7 @@ func (sw *AudioSwitch) updateStateGPI(data string) {
sw.state.GPI[in] = true
default:
rhl.Printf("Audioswitch: invalid gpi status update (state must be either '1' or '0' but is '%s')", data[7:8])
+ return
}
sw.StateChanges <- sw.state
return