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

Fail RMT one-shot transactions if end-marker is missing #2463

Merged
merged 8 commits into from
Nov 13, 2024

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Nov 5, 2024

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the Migration Guide.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Closes #2115

Previously we didn't check the (needed) end-marker for single-shot RMT transmissions which ended up getting repeated forever.
Now it's checked and an error is returned if no end-marker is present in the data.

Testing

Changing the example to not include an end-marker should fail

esp-hal/src/rmt.rs Outdated Show resolved Hide resolved
@bjoernQ bjoernQ force-pushed the check-rmt-end-marker branch from 3221128 to 62bafa1 Compare November 5, 2024 14:16
@bjoernQ bjoernQ marked this pull request as ready for review November 5, 2024 14:19
@bjoernQ
Copy link
Contributor Author

bjoernQ commented Nov 5, 2024

Seems the failing tests on C6 are not really related to the changed code

esp-hal/src/rmt.rs Outdated Show resolved Hide resolved
@bjoernQ bjoernQ force-pushed the check-rmt-end-marker branch from c9f2c60 to e3588cd Compare November 11, 2024 09:27
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jessebraham jessebraham added this pull request to the merge queue Nov 13, 2024
Merged via the queue into esp-rs:main with commit 7da4444 Nov 13, 2024
28 checks passed
@bjoernQ bjoernQ deleted the check-rmt-end-marker branch November 26, 2024 08:40
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.

[RMT] single shot transmit is continuous.
4 participants