Conversation
Why: 1. short_press_time_ms 字段在代码中从未被读取,实际消抖由全局宏 BITS_BTN_DEBOUNCE_TIME_MS(40ms)控制; 2. 该字段在文档中被错误描述为消抖参数,误导用户以为可通过它控制消抖行为; 3. 删除头文件中的宏定义和结构体字段,同步清理 docs、examples、simulator、test 共 13 个文件中的所有引用; 4. 修正 usage_guide.md 消抖机制描述,指向真正生效的 BITS_BTN_DEBOUNCE_TIME_MS TEST: 48 Tests 0 Failures 0 Ignored
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why:
TEST: 48 Tests 0 Failures 0 Ignored