Repository navigation
Conversation
Wombat-Firmware now counts packets with a corrupt count byte or an out-of-range address, mod 16, in the high nibble of REG_RW_MOT_DONE (kipr/Wombat-Firmware#12). Without a reader on the host, those lost writes are silent. WombatDevice::transfer() watches the nibble and logs a warning when it moves, at most once every 5 seconds, and once more on close if any are still unreported. The first value seen is the baseline. A step of -1 is ignored: the firmware's main loop can briefly write back the previous count. Older firmware leaves the nibble at 0, so it never warns. get_motor_done already masks the low four bits and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Since kipr/Wombat-Firmware#12, the co-processor counts the SPI packets it drops writes from (corrupt count byte or out-of-range address). It keeps the count mod 16 in the high nibble of
REG_RW_MOT_DONE. Nothing on the host read that count, so those lost writes went unnoticed.WombatDevice::transfer()now watches the nibble and logs a warning when it changes:get_motor_donealready masks the low four bits and is unchanged.Testing
🤖 Generated with Claude Code