Skip to content

Commit 5a549a6

Browse files
Merge pull request #48 from badgeteam/unused-fix
(tidy)driver_buses: fix unused variable error
2 parents 4bf1b7c + 33f1c3b commit 5a549a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/buses/buses.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static xSemaphoreHandle i2c1_mux = NULL;
2727

2828
esp_err_t start_buses() {
2929
// This function initializes the VSPI, HSPI and I2C buses of the ESP32
30-
esp_err_t res;
30+
esp_err_t res = ESP_OK;
3131

3232
#ifdef CONFIG_BUS_VSPI_ENABLE
3333
spi_bus_config_t vspiBusConfiguration = {0};
@@ -109,7 +109,7 @@ esp_err_t start_buses() {
109109
if (i2c1_mux == NULL) return ESP_ERR_NO_MEM;
110110
#endif
111111

112-
return ESP_OK;
112+
return res;
113113
}
114114

115115
/* I2C helper functions */

0 commit comments

Comments
 (0)