diff --git a/components/audio_hal/driver/es8374/es8374.c b/components/audio_hal/driver/es8374/es8374.c index 1817fb7..64aa350 100644 --- a/components/audio_hal/driver/es8374/es8374.c +++ b/components/audio_hal/driver/es8374/es8374.c @@ -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 diff --git a/components/network_interface/eth_interface.c b/components/network_interface/eth_interface.c index 1f41a45..6fc4843 100644 --- a/components/network_interface/eth_interface.c +++ b/components/network_interface/eth_interface.c @@ -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 }