STM32L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED

This commit is contained in:
Juha Niskanen 2017-05-04 08:56:32 +03:00
parent c59a5efcae
commit c67c4a75ba

View File

@ -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;