Repository navigation
修复风扇 AUTO 读温连续性和 WebUI 状态显示 - #70
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d7dc7de9db
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (s_state.bound_var_count == 1) { | ||
| double value; | ||
| esp_err_t ret = read_fresh_variable_float(s_state.bound_vars[0].name, &value, |
There was a problem hiding this comment.
Keep weighted bindings usable by the AUTO reader
When two or more temperature variables are bound, this condition leaves every AUTO sample unavailable, even when all variables are fresh. The existing editor (bindTempVariable()) and api_temp_bind() still accept weighted bindings, but an unlatched AUTO fan now falls back to 25% indefinitely and never evaluates their overtemperature guard. In the source-extracted host harness, two fresh 98°C inputs produced a valid 98°C effective temperature while AUTO requested 25% with guard_active == false. Preserve weighted control and the hottest-bound-variable guard in the bound-only reader rather than treating supported multi-variable configurations as missing input.
Useful? React with 👍 / 👎.
| if (!new_report && !fan->auto_resume_pending) { | ||
| /* Normal asynchronous polling neither creates a sample nor erases | ||
| * fractional fall credit. Don't bank time across a report gap. */ | ||
| if (sample_age_ms > max_report_gap_ms) fan->last_auto_update_ms = now_ms; | ||
| return ESP_OK; |
There was a problem hiding this comment.
Retry failed AUTO PWM writes on duplicate valid reports
If an ordinary AUTO PWM update fails and the next poll reads the same still-valid temperature report, this return suppresses recovery: auto_report_ms was already advanced before the failed write, but neither the outstanding target nor fault is considered here. A one-shot write failure in the host harness left an 80°C fan at 0% through five subsequent valid polls, with no further PWM attempt until the six-second stale fallback. Retry the unconfirmed PWM target on valid duplicate reads without recording another temperature sample or advancing the controller's slew calculation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 179c08be81
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| continue; | ||
| } | ||
| if (basic_temp_data_valid) fan->temperature = temp_data.value; | ||
| if (fan->mode != TS_FAN_MODE_AUTO && basic_temp_data_valid) fan->temperature = temp_data.value; |
There was a problem hiding this comment.
Refresh the temperature snapshot for disabled AUTO fans
When an AUTO fan is disabled with ts_fan_enable(false), this new mode check skips the monitoring assignment, while the later disabled-fan continue also prevents apply_adaptive_auto() from consuming fresh bound samples. Consequently, ts_fan_get_status() and the per-fan temperature in fan.status report the pre-disable temperature indefinitely. A source-extracted host probe retained 49°C after 18 seconds of fresh 80°C reports, while global temperature status correctly showed 80°C. Keep updating the temperature-only snapshot for disabled AUTO fans without advancing their controller or changing the zero PWM.
Useful? React with 👍 / 👎.
风扇控制
风扇 WebUI
验证
发布
保留
version.txt和 Release 名称v0.6.5。合并后的 main 工作流生成新的0.6.5+构建标识,通过 CI Gate 后更新现有 Release 的固件、WWW 和串口包。发布验证通过后,仅在现有 Release 正文末尾追加本次变更。