a2dp source demo: fix playback stop when 'z' is hit twice

This commit is contained in:
Milanka Ringwald 2017-08-23 11:46:05 +02:00
parent 87e914e548
commit 63d7d357dc

View File

@ -498,7 +498,7 @@ static void stdin_process(char cmd){
status = a2dp_source_start_stream(media_tracker.a2dp_cid, media_tracker.local_seid);
break;
case 'z':
if (data_source == STREAM_SINE) {
if (data_source == STREAM_MOD) {
printf("Already playing mode.\n");
return;
}