From 1d0a37cd10cf405f201929443cb537103ce6d459 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Serrano Date: Fri, 7 Oct 2022 15:19:20 -0300 Subject: [PATCH] xtensa/esp32: fix if define convention to use parentheses --- boards/xtensa/esp32/common/src/esp32_board_i2sdev.c | 4 ++-- boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/xtensa/esp32/common/src/esp32_board_i2sdev.c b/boards/xtensa/esp32/common/src/esp32_board_i2sdev.c index 321255af4c..c7908f338e 100644 --- a/boards/xtensa/esp32/common/src/esp32_board_i2sdev.c +++ b/boards/xtensa/esp32/common/src/esp32_board_i2sdev.c @@ -37,8 +37,8 @@ #include "esp32_i2s.h" -#if defined CONFIG_ESP32_I2S0 && !defined CONFIG_AUDIO_CS4344 || \ - defined CONFIG_ESP32_I2S1 +#if defined(CONFIG_ESP32_I2S0) && !defined(CONFIG_AUDIO_CS4344) || \ + defined(CONFIG_ESP32_I2S1) /**************************************************************************** * Public Functions diff --git a/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h b/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h index fae556a816..3360d9ca95 100644 --- a/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h +++ b/boards/xtensa/esp32/esp32-devkitc/src/esp32-devkitc.h @@ -173,8 +173,8 @@ int esp32_twai_setup(void); * ****************************************************************************/ -#if defined CONFIG_ESP32_I2S0 && !defined CONFIG_AUDIO_CS4344 || \ - defined CONFIG_ESP32_I2S1 +#if defined(CONFIG_ESP32_I2S0) && !defined(CONFIG_AUDIO_CS4344) || \ + defined(CONFIG_ESP32_I2S1) int board_i2sdev_initialize(int port); #endif