From 98b77e7926e39e58ceb8af7274cbbc7d71204a0c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 8 Feb 2019 16:26:58 +0100 Subject: [PATCH] example/a2dp_sink_demo: show usage for space key --- example/a2dp_sink_demo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/a2dp_sink_demo.c b/example/a2dp_sink_demo.c index 7de8723dc..95409ef5a 100644 --- a/example/a2dp_sink_demo.c +++ b/example/a2dp_sink_demo.c @@ -800,6 +800,11 @@ static void stdin_process(char cmd){ case 'b': case 'c': break; + case '\n': + case '\r': + case ' ': + show_usage(); + return; default: printf("Not connected. Please use 'c' to establish an AVRCP connection with device (addr %s).\n", bd_addr_to_str(device_addr)); return;