Skip to content

Commit c609792

Browse files
committed
Merge branch 'master' of github.com:badgeteam/badgePython into renze/troopers2023
2 parents bc03cd9 + 5a549a6 commit c609792

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)