Harden standalone mode watchdog and SD-card mount lifecycle#209
Closed
CloudyPadmal with Copilot wants to merge 9 commits into
Closed
Harden standalone mode watchdog and SD-card mount lifecycle#209CloudyPadmal with Copilot wants to merge 9 commits into
CloudyPadmal with Copilot wants to merge 9 commits into
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix code based on review comments
Harden standalone mode watchdog and SD-card mount lifecycle
Jul 6, 2026
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.
This addresses the PR #208 review-thread findings around standalone mode reliability and SD-card config validation. The update keeps scope to the commented areas: watchdog behavior in standalone state, FatFS mount lifetime/prototypes, and API/docs consistency.
Standalone state machine
Standalone()idle loop to matchStandby()behavior and avoid resets while waiting for UART traffic.Standalone SD mount lifecycle
SDCARD_standalone_unmount()in the public header.Config header validation + API contract clarity
"PSLAB"magic check and make intent explicit viaSTANDALONE_MAGIC_LEN+memcmp.sdcard.hdocs with implementation (SUCCESS/FAILED, exact 5-byte magic semantics).