Say how many parts the guarded line has, and which one cannot be dropped - #135
Merged
Conversation
The note under a `&&` block told readers to "enter the parts one at a time" without ever saying how many parts there are. The reporter in OpenIPC/firmware#2381 counted two: their XM U-Boot answered the compound line with the tftp help entry, and they re-entered the transfer and the `sf write` but not the `sf erase` between them. NOR programming only clears bits, so that write stored `old AND new` across the whole 16MB starting at offset 0. It reported "Writing at 0x1000000 -- 100% complete." and left a bootloader that cannot run: no serial output, no PHY link, and nothing in any log naming the step that was missed. That is the second camera lost at this line -- #2299 is what put the note here in the first place. So the note now counts the three commands out by name and says the erase is the one that must not be left out. The sequential gate the previous wording established is unchanged, and its test still pins it. Quoting the values is not cosmetic: the new sentence puts a `: ` inside the scalar, which YAML reads as a mapping and which took the whole en locale down until the suite caught it.
PR Summary by QodoClarify three-step guarded flash sequence and mandatory erase
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent |
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.
The note that appears under a
&&block told readers to "enter the parts one at a time" without ever saying how many parts there are.The reporter in OpenIPC/firmware#2381 counted two. Their XM U-Boot (
2010.06-svn965) has no&&, so the guarded line came back as the tftp help entry — exactly the case this note exists for — and they re-entered the transfer and thesf write, dropping thesf erasethat sat between them:NOR programming only clears bits, so that write stored
old AND newacross the whole 16MB starting at offset0x0. It reported success and left a bootloader that cannot run — no serial output, no PHY link, and nothing in any log naming the step that was missed. It is the second camera lost at this line; #2299 is what put the note here in the first place.The note now counts the three commands out by name and says the erase is the one that must not be left out. The sequential gate the previous wording established is unchanged and its test still pins it; the new test pins the count and the warning.
Quoting the locale values is not cosmetic — the new sentence puts a
:inside the scalar, which YAML reads as a mapping. That took the wholeenlocale down until the suite caught it.Translations updated for
ruandzhalongsideen.Testing
Full suite in a Ruby 3.1.7 + MariaDB 11.8 container, matching the
testjob inbuild.yml: