diff options
| author | Yaochenger <[email protected]> | 2024-09-03 13:28:06 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-09-03 18:24:45 -0400 |
| commit | 7469edd1655f285d9c360fb4e2dfff8068c61390 (patch) | |
| tree | 5ba05a4fba750f174c9de9736830d6dfe84a121f /src/object.c | |
| parent | 2e224b30ad68e934205467721ac2385d7d66676d (diff) | |
[fix][device] 修正使用rt_device_create创建设备,使用rt_device_destroy删除失败的问题
Diffstat (limited to 'src/object.c')
| -rw-r--r-- | src/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index 0cb1a188a3..4e28eeb57e 100644 --- a/src/object.c +++ b/src/object.c @@ -429,7 +429,7 @@ void rt_object_detach(rt_object_t object) rt_list_remove(&(object->list)); rt_spin_unlock_irqrestore(&(information->spinlock), level); - object->type = 0; + object->type = RT_Object_Class_Null; } #ifdef RT_USING_HEAP |
