Skip to content
Permalink
Browse files

i2c_ll_stm32_v2: Set slave_attached to false on slave unregister

Set slave_attached to false before exit
i2c_stm32_slave_unregister().

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information...
ydamigos authored and carlescufi committed Jul 20, 2019
1 parent 80de227 commit 0f52c7137d329b774e976e0f14599b6287662e06
Showing with 2 additions and 0 deletions.
  1. +2 −0 drivers/i2c/i2c_ll_stm32_v2.c
@@ -246,6 +246,8 @@ int i2c_stm32_slave_unregister(struct device *dev,

LL_I2C_Disable(i2c);

data->slave_attached = false;

LOG_DBG("i2c: slave unregistered");

return 0;

0 comments on commit 0f52c71

Please sign in to comment.
You can’t perform that action at this time.