Skip to content

[Bug] i2c 总线互斥锁名字长度超过默认的RT_NAME_MAX 8 #10669

@CYFS3

Description

@CYFS3

RT-Thread Version

master

Hardware Type/Architectures

all

Develop Toolchain

Other

Describe the bug

因为 #10537 把对象名字长度超过8的时候直接断言错误,但是i2c 的互斥锁名字为i2c_bus_lock ,显然超过了最大长度。

Image Image

解决方案
1.把默认的RT_NAME_MAX变大
2.或者把i2c_bus_lock修改为少于8长度

Other additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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