Fix check.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Aug 2010 10:51:17 +0000 (10:51 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 3 Aug 2010 10:51:17 +0000 (10:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4128 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/i2c.h

index d0f2d16ef180028f27e97f23a43ddcf7709612bf..2f6b4cc364e181e43e8848576ec5ff44d83f7165 100644 (file)
@@ -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