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

Replace Arc with Rc in ledc_threads example #514

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lonesometraveler
Copy link
Contributor

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo fmt command to ensure that all changed code is formatted correctly.
  • I have used cargo clippy command to ensure that all changed code passes latest Clippy nightly lints.
  • My changes were added to the CHANGELOG.md in the proper section.

Pull Request Details 📖

Description

This pull request replaces the use of Arc with Rc for sharing the LedcTimerDriver instance among multiple LedcDriver instances in the ledc_threads example. This change addresses a clippy warning (usage of an Arc that is not Send and Sync).

Testing

The updated code compiles without issues and runs successfully on a device.

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