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

Commit

Permalink
fix: enable debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
elagil committed Oct 19, 2023
1 parent 2579b72 commit c8577cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/blus_mini/blus_mini.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "audio.h"
#include "ch.h"
#include "chprintf.h"
#include "print.h"
#include "tas2780.h"

/**
Expand Down Expand Up @@ -70,9 +71,9 @@ static THD_FUNCTION(housekeeping_thread, arg) {
tas2780_release_lock();

chSysLock();
// size_t buffer_fill_size = audio_playback_get_buffer_fill_size();
// size_t feedback_value = audio_feedback_get_value();
// size_t playback_state = audio_playback_get_state();
size_t buffer_fill_size = audio_playback_get_buffer_fill_size();
size_t feedback_value = audio_feedback_get_value();
size_t playback_state = audio_playback_get_state();
chSysUnlock();

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

// PRINTF("Buffer: %u / %u (fb %u) @ state %u\n", buffer_fill_size, AUDIO_MAX_BUFFER_SIZE, feedback_value,
// playback_state);
PRINTF("Buffer: %u / %u (fb %u) @ state %u\n", buffer_fill_size, AUDIO_MAX_BUFFER_SIZE, feedback_value,
playback_state);

chThdSleepMilliseconds(500);
}
Expand Down

0 comments on commit c8577cf

Please sign in to comment.