From b3c526d35c6e3dcc5a1af6aa0d9e9dcef8db2f83 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 4 Sep 2008 16:55:54 +0300 Subject: Don't send Response and Hold status if there is none --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/headset.c') 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); -- cgit