fix bl602 i2c sem init mistake

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-10-27 17:02:42 +08:00 committed by Xiang Xiao
parent 29be2481e9
commit 2156a102cf
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ static struct bl602_i2c_priv_s bl602_i2c0_priv =
.subaddr = 0,
.sublen = 0,
.lock = NXMUTEX_INITIALIZER,
.sem_isr = SEM_INITIALIZER(0),
.sem_isr = SEM_INITIALIZER(1),
.i2cstate = EV_I2C_END_INT,
.msgv = NULL,
.msgid = 0,