From 0735e8c2a710562cde9d3dd3ca5798460cf65433 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Thu, 4 Mar 2021 09:52:51 -0300 Subject: [PATCH] xtensa/esp32: Fix BMP180 erroneously depending on I2C_DRIVER --- boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c index ec91db96da..8c37602d38 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c +++ b/boards/xtensa/esp32/esp32-wrover-kit/src/esp32_bringup.c @@ -263,6 +263,8 @@ int esp32_bringup(void) } #endif +#endif + #ifdef CONFIG_SENSORS_BMP180 /* Try to register BMP180 device in I2C0 */ @@ -270,12 +272,9 @@ int esp32_bringup(void) if (ret < 0) { - syslog(LOG_ERR, "Failed to initialize BMP180" - "Driver for I2C0: %d\n", ret); + syslog(LOG_ERR, "Failed to initialize BMP180 driver: %d\n", ret); return ret; } -#endif - #endif /* If we got here then perhaps not all initialization was successful, but