fix compile

This commit is contained in:
Thomas Göttgens
2022-11-29 17:45:57 +01:00
parent 05e992ad67
commit 628028475c
4 changed files with 12 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ IRAM_ATTR void am_onTimer()
if (xHigherPriorityTaskWoken)
portYIELD_FROM_ISR();
}
} else if ((radio_state == RadioState::rx) && (!moduleConfig.audio.i2s_din) {
} else if ((radio_state == RadioState::rx) && (!moduleConfig.audio.i2s_din)) {
// ESP32-S3 does not have DAC support
#if !defined(CONFIG_IDF_TARGET_ESP32S3)
int16_t v;
@@ -197,7 +197,7 @@ int32_t AudioModule::runOnce()
.sample_rate = 8000,
.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB),
.communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = 0,
.dma_buf_count = 8,
.dma_buf_len = ADC_BUFFER_SIZE,