diff --git a/components/_override/i2s.c b/components/_override/i2s.c index 8735b1c8..bb20c5e2 100644 --- a/components/_override/i2s.c +++ b/components/_override/i2s.c @@ -303,7 +303,7 @@ esp_err_t i2s_set_clk(i2s_port_t i2s_num, uint32_t rate, i2s_bits_per_sample_t b double denom = (double)1 / 64; int channel = 2; i2s_dma_t *save_tx = NULL, *save_rx = NULL; -ESP_LOGW(I2S_TAG, "THIS IS US IN I2S !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + I2S_CHECK((i2s_num < I2S_NUM_MAX), "i2s_num error", ESP_ERR_INVALID_ARG); if (bits % 8 != 0 || bits > I2S_BITS_PER_SAMPLE_32BIT || bits < I2S_BITS_PER_SAMPLE_16BIT) { diff --git a/components/display/core/ifaces/default_if_spi.c b/components/display/core/ifaces/default_if_spi.c index ca11f673..1ce03dbf 100644 --- a/components/display/core/ifaces/default_if_spi.c +++ b/components/display/core/ifaces/default_if_spi.c @@ -54,7 +54,7 @@ bool GDS_SPIAttachDevice( struct GDS_Device* Device, int Width, int Height, int SPIDeviceConfig.cs_ena_pretrans = Device->CS_pre; SPIDeviceConfig.cs_ena_posttrans = Device->CS_post; SPIDeviceConfig.mode = Device->SPI_mode; - + ESP_ERROR_CHECK_NONFATAL( spi_bus_add_device( SPIHost, &SPIDeviceConfig, &SPIDevice ), return false ); Device->WriteCommand = SPIDefaultWriteCommand; diff --git a/components/driver_bt/bt_app_source.c b/components/driver_bt/bt_app_source.c index f6761ff1..29c54663 100644 --- a/components/driver_bt/bt_app_source.c +++ b/components/driver_bt/bt_app_source.c @@ -452,7 +452,6 @@ static void handle_connect_state_unconnected(uint16_t event, esp_a2d_cb_param_t { case ESP_A2D_CONNECTION_STATE_DISCONNECTED: unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state); - set_app_source_state(APP_AV_STATE_UNCONNECTED); break; case ESP_A2D_CONNECTION_STATE_CONNECTING: unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state);