summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-01-23 12:13:30 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-01-23 12:13:30 +0000
commita838b6a09d936225aa7c19aaaabbcc9f37fffdce (patch)
tree3e5877e5a862bf399d2cc46fb7133c09764fe869 /audio/headset.c
parentb8e9425de9f30f87f7315fe9b5ca76348de16f44 (diff)
Fix typo
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index fbc66371..27a1a66a 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -441,7 +441,7 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond,
*cr = '\0';
err = handle_event(device, &hs->buf[hs->data_start]);
- if (err = -EINVAL) {
+ if (err == -EINVAL) {
error("Received unknown command: %s", &hs->buf[hs->data_start]);
err = headset_send(hs, "\r\nERROR\r\n");
} else if (err < 0)