summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-04 16:55:54 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-04 16:55:54 +0300
commitb3c526d35c6e3dcc5a1af6aa0d9e9dcef8db2f83 (patch)
treefcfaa7651614ab73972a01521b196e5daa268c02 /audio
parent2adbe66120453793804de7592179419f31c198e9 (diff)
Don't send Response and Hold status if there is none
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index c4eefe23..74093afa 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -616,7 +616,7 @@ static int response_and_hold(struct audio_device *device, const char *buf)
headset_send(hs, "\r\nERROR\r\n");
return 0;
}
- } else
+ } else if (ag.rh >= 0)
headset_send(hs, "\r\n+BTRH:%d\r\n", ag.rh);
return headset_send(hs, "\r\nOK\n\r", ag.rh);