Skip to content

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

Closed

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

Activity

  1. dongly commented on Sep 7, 2025

    @dongly
    Contributor

    这只这个,还有ulog ,sys_work,cherryusb ...
    #10574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions