fix build errors on wifi only config
Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
@@ -628,7 +628,7 @@ static int es8374_init_reg(audio_hal_codec_mode_t ms_mode, es_i2s_fmt_t fmt,
|
||||
es_i2s_clock_t cfg, es_dac_output_t out_channel,
|
||||
es_adc_input_t in_channel) {
|
||||
int res = 0;
|
||||
uint8_t reg;
|
||||
uint8_t reg = 0;
|
||||
|
||||
res |= es8374_write_reg(0x00, 0x3F); // IC Rst start
|
||||
res |= es8374_write_reg(0x00, 0x03); // IC Rst stop
|
||||
|
||||
@@ -423,6 +423,8 @@ void eth_start(void) {
|
||||
|
||||
ESP_ERROR_CHECK(eth_init(ð_handles, ð_port_cnt));
|
||||
|
||||
#if CONFIG_SNAPCLIENT_USE_INTERNAL_ETHERNET || \
|
||||
CONFIG_SNAPCLIENT_USE_SPI_ETHERNET
|
||||
// Create instance(s) of esp-netif for Ethernet(s)
|
||||
if (eth_port_cnt == 1) {
|
||||
// Use ESP_NETIF_DEFAULT_ETH when just one Ethernet interface is used and
|
||||
@@ -470,4 +472,5 @@ void eth_start(void) {
|
||||
for (int i = 0; i < eth_port_cnt; i++) {
|
||||
ESP_ERROR_CHECK(esp_eth_start(eth_handles[i]));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user