Skip to content

Comments

Fix: reset wr_state on first block reception#385

Open
summershrimp wants to merge 1 commit intoadafruit:masterfrom
summershrimp:clean_wr_state
Open

Fix: reset wr_state on first block reception#385
summershrimp wants to merge 1 commit intoadafruit:masterfrom
summershrimp:clean_wr_state

Conversation

@summershrimp
Copy link

wr_state resides in SRAM and may contain stale values. Resetting it on the first block ensures correct state and valid data.

Checklist

By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes

  • Please provide specific title of the PR describing the change
  • If you are adding an new boards, please make sure
    • Provide link to your allocated VID/PID if applicable
    • UF2_BOARD_ID in your board.h follow correct format from uf2 specs

This checklist items that are not applicable to your PR can be deleted.


Description of Change

Please describe your proposed Pull Request and it's impact.

wr_state resides in SRAM and may contain stale values.
Resetting it on the first block ensures correct state and valid data.

Signed-off-by: Hakusai Zhang <xm1994@gmail.com>
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.

1 participant