example/le_audio_demo_util_sink: log PLC debug in packet log

This commit is contained in:
Matthias Ringwald 2023-10-14 17:28:11 +02:00
parent a9941893f6
commit 4e13b5b46d

View File

@ -60,7 +60,10 @@
//#define DEBUG_PLC //#define DEBUG_PLC
#ifdef DEBUG_PLC #ifdef DEBUG_PLC
#define printf_plc(...) printf(__VA_ARGS__) #define printf_plc(...) { \
printf(__VA_ARGS__); \
log_info(__VA_ARGS__);\
}
#else #else
#define printf_plc(...) (void)(0); #define printf_plc(...) (void)(0);
#endif #endif
@ -244,6 +247,7 @@ static void plc_timeout(btstack_timer_source_t * timer) {
switch (le_audio_demo_sink_type){ switch (le_audio_demo_sink_type){
case HCI_ISO_TYPE_CIS: case HCI_ISO_TYPE_CIS:
// assume no packet received in iso interval => FT packets missed // assume no packet received in iso interval => FT packets missed
printf_plc("PLC: timeout cis, group %u, FT %u", group_last_packet_sequence, le_audio_demo_sink_flush_timeout);
plc_check(group_last_packet_sequence + le_audio_demo_sink_flush_timeout); plc_check(group_last_packet_sequence + le_audio_demo_sink_flush_timeout);
break; break;
case HCI_ISO_TYPE_BIS: case HCI_ISO_TYPE_BIS: