Skip to content

[Bug] 使用 rt_object_find()时,当 name 的长度 > RT_NAME_MAX, 查找不到,同之前的行为不一致 #10528

@dongly

Description

@dongly

RT-Thread Version

ece19e9

Hardware Type/Architectures

stm32f407

Develop Toolchain

GCC

Describe the bug

这是 #10523 引入的,不兼容旧版本行为。
如:
在默认情况下,RT_NAME_MAX == 8,
rt_sfud_flash_find_by_dev_name("norflash0") ,原来是可以查找到的,现在就查找不到了

可能 rt_object_get_name()都要处理一下

Other additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions