From c67c4a75ba7110fe896d1bf52ec231e7efa7d4d6 Mon Sep 17 00:00:00 2001 From: Juha Niskanen Date: Thu, 4 May 2017 08:56:32 +0300 Subject: [PATCH] STM32L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED --- arch/arm/src/stm32l4/stm32l4_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32l4/stm32l4_i2c.c b/arch/arm/src/stm32l4/stm32l4_i2c.c index 9be4419de44..fb9b7f6acbd 100644 --- a/arch/arm/src/stm32l4/stm32l4_i2c.c +++ b/arch/arm/src/stm32l4/stm32l4_i2c.c @@ -1532,7 +1532,7 @@ static int stm32l4_i2c_isr_process(struct stm32l4_i2c_priv_s *priv) * ************************************************************************************/ -#ifdef CONFIG_STM32L4_I2C2 +#ifndef CONFIG_I2C_POLLED static int stm32l4_i2c_isr(int irq, void *context, FAR void *arg) { struct stm32l4_i2c_priv_s *priv = (struct stm32l4_i2c_priv_s *priv)arg;