mirror of
https://github.com/esphome/esphome.git
synced 2025-10-02 10:02:23 +01:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -43,8 +43,10 @@ enum MixerEventGroupBits : uint32_t {
|
||||
};
|
||||
|
||||
void SourceSpeaker::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Mixer Source Speaker");
|
||||
ESP_LOGCONFIG(TAG, " Buffer Duration: %" PRIu32 " ms", this->buffer_duration_ms_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"Mixer Source Speaker\n"
|
||||
" Buffer Duration: %" PRIu32 " ms",
|
||||
this->buffer_duration_ms_);
|
||||
if (this->timeout_ms_.has_value()) {
|
||||
ESP_LOGCONFIG(TAG, " Timeout: %" PRIu32 " ms", this->timeout_ms_.value());
|
||||
} else {
|
||||
@@ -291,8 +293,10 @@ void SourceSpeaker::duck_samples(int16_t *input_buffer, uint32_t input_samples_t
|
||||
}
|
||||
|
||||
void MixerSpeaker::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Speaker Mixer:");
|
||||
ESP_LOGCONFIG(TAG, " Number of output channels: %u", this->output_channels_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"Speaker Mixer:\n"
|
||||
" Number of output channels: %u",
|
||||
this->output_channels_);
|
||||
}
|
||||
|
||||
void MixerSpeaker::setup() {
|
||||
|
Reference in New Issue
Block a user