Don't try to configure the dac if there is no dac

Fixes #106
custom
jacqueline 7 months ago
parent 9c95c2b422
commit 2ac2629c48
  1. 3
      src/tangara/audio/i2s_audio_output.cpp

@ -168,6 +168,9 @@ auto I2SAudioOutput::PrepareFormat(const Format& orig) -> Format {
}
auto I2SAudioOutput::Configure(const Format& fmt) -> void {
if (!dac_) {
return;
}
if (current_config_ && fmt == *current_config_) {
ESP_LOGI(kTag, "ignoring unchanged format");
return;

Loading…
Cancel
Save