We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc03cd9 + 5a549a6 commit c609792Copy full SHA for c609792
1 file changed
components/buses/buses.c
@@ -27,7 +27,7 @@ static xSemaphoreHandle i2c1_mux = NULL;
27
28
esp_err_t start_buses() {
29
// This function initializes the VSPI, HSPI and I2C buses of the ESP32
30
- esp_err_t res;
+ esp_err_t res = ESP_OK;
31
32
#ifdef CONFIG_BUS_VSPI_ENABLE
33
spi_bus_config_t vspiBusConfiguration = {0};
@@ -109,7 +109,7 @@ esp_err_t start_buses() {
109
if (i2c1_mux == NULL) return ESP_ERR_NO_MEM;
110
#endif
111
112
- return ESP_OK;
+ return res;
113
}
114
115
/* I2C helper functions */
0 commit comments