Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't write a 0 length led string to the FPGA #6271

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

ThadHouse
Copy link
Member

Due to something weird in the FPGA, calling strobeLoad() with a string length of 0 causes both CPUs to spin at 100%, basically shutting down everything else on the robot.

If a 0 length string happens to be passed, just bail out early.

Closes #6257

@ThadHouse ThadHouse requested a review from a team as a code owner January 20, 2024 17:09
@Starlight220
Copy link
Member

Do we want to warn/error on this?

@ThadHouse
Copy link
Member Author

Nope. This is doing the exact same thing as expected. a 0 length string write does nothing.

@PeterJohnson PeterJohnson merged commit 7957f4a into wpilibsuite:main Jan 20, 2024
27 checks passed
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.

Generic sanity test on hardware ports
3 participants