Skip to content

fix: retain plate-clear presses after request failures - #43

Merged
EdwardChamberlain merged 3 commits into
mainfrom
fix/issue-39-preserve-plate-clear
Sep 24, 2026
Merged

EdwardChamberlain merged 3 commits into
mainfrom
fix/issue-39-preserve-plate-clear

Conversation

@EdwardChamberlain

@EdwardChamberlain EdwardChamberlain commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #39. Preserve the button intent after API failures, reconcile ambiguous outcomes against printer status before retrying, keep the plate-clear LED active while pending, and retry station Wi-Fi from setup AP mode.

The AP retry timestamp is initialized outside the connection call so this change composes cleanly with the startup config-readiness gate. Test doubles include that readiness API for the combined candidate.

Validation: 22 focused tests passed; touched-file compilation and git diff --check passed. Hardware validation remains outstanding.

@EdwardChamberlain

EdwardChamberlain commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner Author

Compatibility issues fixed in b3a6809. The AP retry timestamp is now initialized after the startup block, so PR #43 composes with #42's config-readiness startup gate. The test fixture also exposes the readiness API used by that combined candidate.

Validation: 22 focused plate-clear/API/Wi-Fi tests pass; the combined candidate passes 125 tests excluding the two GUI modules that need the unavailable local FreeSimpleGUI dependency. Flake8 and compilation pass. PR #45 CI is green; its checks will apply to main after #45 lands.

Still needs hardware evidence: simulate a dropped/lost response and verify the press remains pending, then rehearse Wi-Fi/AP recovery on ESP32-C3.

@EdwardChamberlain
EdwardChamberlain merged commit 75a4764 into main Sep 24, 2026
3 checks passed
@EdwardChamberlain
EdwardChamberlain deleted the fix/issue-39-preserve-plate-clear branch September 24, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Preserve plate-clear intent when the API request fails

1 participant