Skip to content

Commit a20ca7a

Browse files
committed
IDF compile warnings
1 parent e5c04b5 commit a20ca7a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/AudioAnalog/AnalogDriverESP32V1.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,13 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
517517
} else {
518518
LOGI("buffer_size: %u samples, conv_frame_size: %u bytes", cfg.buffer_size, (unsigned)conv_frame_size);
519519
}
520-
520+
521521
// Create adc_continuous handle
522-
adc_continuous_handle_cfg_t adc_config = {
523-
.max_store_buf_size = (uint32_t)conv_frame_size * 2,
524-
.conv_frame_size = (uint32_t) conv_frame_size,
525-
};
522+
adc_continuous_handle_cfg_t adc_config;
523+
adc_config.max_store_buf_size = (uint32_t)conv_frame_size * 2;
524+
adc_config.conv_frame_size = (uint32_t) conv_frame_size;
525+
adc_config.flags.flush_pool = true;
526+
526527
err = adc_continuous_new_handle(&adc_config, &adc_handle);
527528
if (err != ESP_OK) {
528529
LOGE("adc_continuous_new_handle failed with error: %d", err);

src/AudioI2S/I2SESP32V1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,12 @@ class I2SDriverESP32V1 {
159159
result = I2S_STD_MSB_SLOT_DEFAULT_CONFIG(
160160
(i2s_data_bit_width_t)cfg.bits_per_sample,
161161
(i2s_slot_mode_t)cfg.channels);
162+
break;
162163
case I2S_PCM:
163164
result = I2S_STD_PCM_SLOT_DEFAULT_CONFIG(
164165
(i2s_data_bit_width_t)cfg.bits_per_sample,
165166
(i2s_slot_mode_t)cfg.channels);
167+
break;
166168
default:
167169
result = I2S_STD_PHILIPS_SLOT_DEFAULT_CONFIG(
168170
(i2s_data_bit_width_t)cfg.bits_per_sample,

0 commit comments

Comments
 (0)