aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/i2c.c
diff options
context:
space:
mode:
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");