mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 15:40:11 +00:00
examples/sco: fix compile for non-sine modes
This commit is contained in:
parent
8b29cfc66f
commit
38b2eaaf74
@ -49,7 +49,7 @@
|
||||
|
||||
|
||||
// SCO demo configuration
|
||||
#define SCO_DEMO_MODE SCO_DEMO_MODE_SINE
|
||||
#define SCO_DEMO_MODE SCO_DEMO_MODE_ASCII
|
||||
#define SCO_REPORT_PERIOD 100
|
||||
|
||||
#ifdef HAVE_POSIX_FILE_IO
|
||||
@ -241,8 +241,9 @@ void sco_demo_send(hci_con_handle_t sco_handle){
|
||||
memset(&sco_packet[3], phase++, frames_per_packet);
|
||||
if (phase > 'z') phase = 'a';
|
||||
#else
|
||||
for (i=0;i<frames_per_packet;i++){
|
||||
sco_packet[3+i] = phase++;
|
||||
int j;
|
||||
for (j=0;j<frames_per_packet;j++){
|
||||
sco_packet[3+j] = phase++;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user