Skip to content

Commit

Permalink
checkADCSampleRate
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 13, 2023
1 parent 1e8c59a commit 5a348ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AudioAnalog/AnalogAudioESP32V1.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
// Boundary checks
if ((sample_rate < SOC_ADC_SAMPLE_FREQ_THRES_LOW) ||
(sample_rate > SOC_ADC_SAMPLE_FREQ_THRES_HIGH)) {
LOGE("sample rate: %u can not be set, range: %u to %u",
LOGE("sample rate eff: %u can not be set, range: %u to %u",sample_rate,
SOC_ADC_SAMPLE_FREQ_THRES_LOW, SOC_ADC_SAMPLE_FREQ_THRES_HIGH);
return false;
} else {
LOGI("sample rate: %u, range: %u to %u", sample_rate,
LOGI("sample rate eff: %u, range: %u to %u", sample_rate,
SOC_ADC_SAMPLE_FREQ_THRES_LOW, SOC_ADC_SAMPLE_FREQ_THRES_HIGH);
}
return true;
Expand Down

0 comments on commit 5a348ab

Please sign in to comment.