Skip to content

Commit cb9a16e

Browse files
committed
Compiler information messages
1 parent b220e82 commit cb9a16e

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

src/AudioTools/CoreAudio/AudioAnalog/AnalogDriverESP32V1.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
291291
// Push the data to the corresponding FIFO buffer
292292
if (idx >= 0) {
293293
if (self->fifo_buffers[idx]->push(data)) {
294-
LOGD("Sample %d, FIFO %d, ch %u, d %u", i, idx, chan_num, data);
294+
LOGD("Sample %d, FIFO %d, ch %u, d %u", i, idx, (unsigned)chan_num, (unsigned)data);
295295
} else {
296-
LOGE("Sample %d, FIFO buffer is full, ch %u, d %u", i, (unsigned)chan_num, data);
296+
LOGE("Sample %d, FIFO buffer is full, ch %u, d %u", i, (unsigned)chan_num, (unsigned)data);
297297
}
298298
} else {
299-
LOGE("Sample %d, ch %u not found in configuration, d: %u", i, (unsigned)chan_num, data);
299+
LOGE("Sample %d, ch %u not found in configuration, d: %u", i, (unsigned)chan_num, (unsigned)data);
300300
for (int k = 0; k < self->cfg.channels; ++k) {
301301
LOGE("Available config ch: %u", self->cfg.adc_channels[k]);
302302
}
@@ -343,12 +343,12 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
343343
// Push the data to the corresponding FIFO buffer
344344
if (idx >= 0) {
345345
if (self->fifo_buffers[idx]->push(data)) {
346-
LOGD("Top Off Sample %d, FIFO %d, ch %u, d %u", i, idx, chan_num, data);
346+
LOGD("Top Off Sample %d, FIFO %d, ch %u, d %u", i, idx, (unsigned)chan_num, (unsigned)data);
347347
} else {
348-
LOGE("Top Off Sample %d, FIFO buffer is full, ch %u, d %u", i, chan_num, data);
348+
LOGE("Top Off Sample %d, FIFO buffer is full, ch %u, d %u", i, (unsigned)chan_num, (unsigned)data);
349349
}
350350
} else {
351-
LOGE("Top Off Sample %d, ch %u not found in configuration, d %u", i, chan_num, data);
351+
LOGE("Top Off Sample %d, ch %u not found in configuration, d %u", i, (unsigned)chan_num, (unsigned)data);
352352
for (int k = 0; k < self->cfg.channels; ++k) {
353353
LOGE("Available config ch: %u", self->cfg.adc_channels[k]);
354354
}

src/AudioTools/CoreAudio/AudioI2S/I2SESP32V1.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -290,29 +290,16 @@ class I2SDriverESP32V1 {
290290
soc_periph_i2s_clk_src_t getClockSource(I2SConfigESP32V1 &cfg){
291291
soc_periph_i2s_clk_src_t result = I2S_CLK_SRC_DEFAULT;
292292
// use mclk pin as input in slave mode if supported
293-
bool is_pin_mck_output = true;
294293
if (cfg.pin_mck != -1) {
295294
if (!cfg.is_master) {
296295
#if SOC_I2S_HW_VERSION_2
297296
LOGI("pin_mclk is input");
298297
result = I2S_CLK_SRC_EXTERNAL;
299-
is_pin_mck_output = false;
300298
#else
301299
LOGE("pin_mclk as input not supported");
302300
#endif
303301
}
304302
}
305-
// // select APLL clock if possible
306-
// if (is_pin_mck_output && cfg.use_apll) {
307-
// // select clock source
308-
// #if SOC_I2S_SUPPORTS_APLL
309-
// result = I2S_CLK_SRC_APLL;
310-
// LOGI("clk_src is I2S_CLK_SRC_APLL");
311-
// #elif SOC_I2S_SUPPORTS_PLL_F160M
312-
// result = I2S_CLK_SRC_PLL_160M;
313-
// LOGI("clk_src is I2S_CLK_SRC_PLL_160M");
314-
// #endif
315-
// }
316303

317304

318305
return result;

0 commit comments

Comments
 (0)