Skip to content

Fixed a bug that duty was not set correctly when PWM#duty was called directly #2

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

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

yuuu
Copy link
Contributor

@yuuu yuuu commented Sep 10, 2023

When calling PWM#duty directly, the value passed to ESP32::LEDC.set_duty was incorrect.
So I fixed PWM#duty and the PWM#pulse_width_us that uses it.

@yuuu yuuu added the bug Something isn't working label Sep 10, 2023
@yuuu yuuu requested a review from vickash September 10, 2023 05:50
@yuuu yuuu self-assigned this Sep 10, 2023
@yuuu yuuu changed the title Fixed a bug that duty was not set correctly when PWM#duty was called … Fixed a bug that duty was not set correctly when PWM#duty was called directly Sep 10, 2023
@yuuu yuuu merged commit 62e58f2 into master Sep 14, 2023
@yuuu
Copy link
Contributor Author

yuuu commented Sep 14, 2023

@vickash Thenk you for your review.

@yuuu yuuu deleted the fix_pwm_duty branch September 14, 2023 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants