Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit c8577cf

Browse files
committed
fix: enable debug prints
1 parent 2579b72 commit c8577cf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

apps/blus_mini/blus_mini.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "audio.h"
1515
#include "ch.h"
1616
#include "chprintf.h"
17+
#include "print.h"
1718
#include "tas2780.h"
1819

1920
/**
@@ -70,9 +71,9 @@ static THD_FUNCTION(housekeeping_thread, arg) {
7071
tas2780_release_lock();
7172

7273
chSysLock();
73-
// size_t buffer_fill_size = audio_playback_get_buffer_fill_size();
74-
// size_t feedback_value = audio_feedback_get_value();
75-
// size_t playback_state = audio_playback_get_state();
74+
size_t buffer_fill_size = audio_playback_get_buffer_fill_size();
75+
size_t feedback_value = audio_feedback_get_value();
76+
size_t playback_state = audio_playback_get_state();
7677
chSysUnlock();
7778

7879
// Disable extended reporting statistics.
@@ -88,8 +89,8 @@ static THD_FUNCTION(housekeeping_thread, arg) {
8889
(audio_request_get_channel_volume(AUDIO_COMMON_CHANNEL_RIGHT) >> 8));
8990
#endif
9091

91-
// PRINTF("Buffer: %u / %u (fb %u) @ state %u\n", buffer_fill_size, AUDIO_MAX_BUFFER_SIZE, feedback_value,
92-
// playback_state);
92+
PRINTF("Buffer: %u / %u (fb %u) @ state %u\n", buffer_fill_size, AUDIO_MAX_BUFFER_SIZE, feedback_value,
93+
playback_state);
9394

9495
chThdSleepMilliseconds(500);
9596
}

0 commit comments

Comments
 (0)