change rt_sem_delete to rt_sem_detach

`_lcd.lcd_lock` should be detach with rt_sem_detach.
This commit is contained in:
liuduanfei 2020-11-26 17:00:49 +08:00 committed by GitHub
parent 631220eb22
commit 9aabf2613e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ int drv_lcd_hw_init(void)
__exit:
if (result != RT_EOK)
{
rt_sem_delete(&_lcd.lcd_lock);
rt_sem_detach(&_lcd.lcd_lock);
if (_lcd.lcd_info.framebuffer)
{