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

Set delay directly from n, not p #1

Open
JamesNewton opened this issue Feb 4, 2021 · 0 comments
Open

Set delay directly from n, not p #1

JamesNewton opened this issue Feb 4, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JamesNewton
Copy link
Owner

As written, if you set p and n, e.g. with 5,120A to put a PWM value of 120 on pin 5, then issue a 0D, the delay will actually be set to 5 us. Probably should move handling of 'D' out of the case and up in the loop just before the if (0==n) {n=p; } and manage with if ('D'==cmd) {d = n; n=0; continue;}

But test that really well if you do it.

@JamesNewton JamesNewton added the bug Something isn't working label Feb 4, 2021
@JamesNewton JamesNewton self-assigned this Feb 4, 2021
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

No branches or pull requests

1 participant