bugfix: 修复 ISR 安全、Wi-Fi 事件判断、I2C 总线选择与闹钟重复触发问题#1
Open
Nicenonecb wants to merge 1 commit intohtx-studio:mainfrom
Open
bugfix: 修复 ISR 安全、Wi-Fi 事件判断、I2C 总线选择与闹钟重复触发问题#1Nicenonecb wants to merge 1 commit intohtx-studio:mainfrom
Nicenonecb wants to merge 1 commit intohtx-studio:mainfrom
Conversation
- 将充电 GPIO ISR 改为仅发送任务通知,避免在 ISR 中直接调用非 ISR-safe 逻辑(电机/风扇控制) - Wi-Fi 事件处理增加 event_base 判断,防止在共用 handler 中误解析 event_data 类型 - I2C 封装按设备句柄选择对应总线(RTC/IMU=port0,Touch=port1),并在错误时对正确总线执行 reset - 闹钟触发增加分钟槽位去重,避免 100ms 定时器在同一秒内重复触发 影响范围: - main/main.cpp - components/esp_wifi_bsp/esp_wifi_bsp.c - components/i2c_bsp/i2c_bsp.c - components/i2c_bsp/i2c_bsp.h - main/page.cpp
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.
影响范围: