example/sco_demo_util: fix compile for non posix systems

This commit is contained in:
Matthias Ringwald 2019-03-01 19:47:27 +01:00
parent 859f2bc59e
commit dfec1b51c3

View File

@ -571,10 +571,12 @@ void sco_demo_send(hci_con_handle_t sco_handle){
audio_input_paused = 1;
} else {
hfp_msbc_read_from_stream(sco_packet + 3, sco_payload_length);
#ifdef HAVE_POSIX_FILE_IO
if (msbc_file_out){
// log outgoing mSBC data for testing
fwrite(sco_packet + 3, sco_payload_length, 1, msbc_file_out);
}
#endif
}
} else {