aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/i2c.c
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-02 15:01:31 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-02 15:01:31 +0000
commitdbac0ef26b2977c9862ec6ddc22f10dac76b3239 (patch)
tree19ec0d98762881949d7b4d7fe6ed3b9925df41cb /os/hal/src/i2c.c
parentc995ee2bd31d5ee7173668c57f9c2c80ae7cc1b3 (diff)
downloadChibiOS-dbac0ef26b2977c9862ec6ddc22f10dac76b3239.tar.gz
ChibiOS-dbac0ef26b2977c9862ec6ddc22f10dac76b3239.tar.bz2
ChibiOS-dbac0ef26b2977c9862ec6ddc22f10dac76b3239.zip
I2C. DMA works.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3550 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/i2c.c')
-rw-r--r--os/hal/src/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c
index 0f46e4e64..3add2af98 100644
--- a/os/hal/src/i2c.c
+++ b/os/hal/src/i2c.c
@@ -210,7 +210,7 @@ void i2cMasterReceive(I2CDriver *i2cp,
chDbgCheck((i2cp != NULL) && (i2cscfg != NULL) &&\
(slave_addr != 0) &&\
- (rxbytes > 0) && \
+ (rxbytes > 1) && \
(rxbuf != NULL),
"i2cMasterReceive");