From e99966ec703497c1c57ed8a4d84e7805b6872418 Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Tue, 10 Oct 2023 10:05:45 +0000 Subject: [PATCH] chore(esp32s3_board_i2c): suppress warning If only I2C1 is configured but not I2C0, gcc is giving a warning, so we suppress it. --- boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c b/boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c index de5c46519c..30f7c3b66b 100644 --- a/boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c +++ b/boards/xtensa/esp32s3/common/src/esp32s3_board_i2c.c @@ -86,7 +86,8 @@ int board_i2c_init(void) ret = i2c_driver_init(ESP32S3_I2C1); #endif +#ifdef CONFIG_ESP32S3_I2C0 done: +#endif return ret; } -