From e9180b5cc5f78d9867016823c44f124183994739 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 3 Aug 2010 10:51:17 +0000 Subject: [PATCH] Fix check. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4128 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/drv/i2c.h b/bertos/drv/i2c.h index d0f2d16e..2f6b4cc3 100644 --- a/bertos/drv/i2c.h +++ b/bertos/drv/i2c.h @@ -326,7 +326,7 @@ INLINE int i2c_error(I2c *i2c) return err; } -#define i2c_init_3(i2c, dev, clock) ((((dev) > I2C_BITBANG0) | ((dev) == I2C_BITBANG_OLD)) ? \ +#define i2c_init_3(i2c, dev, clock) ((((dev) >= I2C_BITBANG0) | ((dev) == I2C_BITBANG_OLD)) ? \ i2c_hw_bitbangInit((i2c), (dev)) : i2c_hw_init((i2c), (dev), (clock))) #if !CONFIG_I2C_DISABLE_OLD_API -- 2.25.1