mirror of https://github.com/esphome/esphome.git
Update i2s_audio.cpp
This commit is contained in:
parent
f09a1e3ece
commit
c9bccbd2d2
|
@ -11,7 +11,7 @@ static const char *const TAG = "i2s_audio";
|
||||||
|
|
||||||
void I2SAudioComponent::setup() {
|
void I2SAudioComponent::setup() {
|
||||||
static i2s_port_t next_port_num = I2S_NUM_0;
|
static i2s_port_t next_port_num = I2S_NUM_0;
|
||||||
if (next_port_num > I2S_NUM_AUTO) {
|
if (next_port_num > SOC_I2S_NUM) {
|
||||||
ESP_LOGE(TAG, "Too many I2S Audio components!");
|
ESP_LOGE(TAG, "Too many I2S Audio components!");
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue