diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/src/i2c.c b/os/hal/src/i2c.c index 4e3f5e5b9..56e2f4484 100644 --- a/os/hal/src/i2c.c +++ b/os/hal/src/i2c.c @@ -69,6 +69,8 @@ void i2cObjectInit(I2CDriver *i2cp) { i2cp->id_state = I2C_STOP;
i2cp->id_config = NULL;
+ i2cp->rxBuffp = NULL;
+ i2cp->txBuffp = NULL;
i2cp->id_slave_config = NULL;
#if I2C_USE_WAIT
|