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

Remove PULL UP segment from signal pin check #25

Closed
wants to merge 3 commits into from

Conversation

pitts-mo
Copy link
Contributor

@pitts-mo pitts-mo commented Nov 3, 2024

Checking for no instance of low while PULL UP will always be true.

I do not yet know of a reason to check while PULL UP.

@pitts-mo
Copy link
Contributor Author

pitts-mo commented Nov 3, 2024

Not tested yet. I expect to have a chance within the next 24 hours.

wait more than one PWM pulse just in case signal source is pulled high
correct logic
@pitts-mo
Copy link
Contributor Author

pitts-mo commented Nov 3, 2024

Ok,
These changes resolve issue #23 and appear to be good enough for issue #24 on my test cases hardware with PWM init, PWM recovery, and bootloader / configurator usage.

However, I think a periodic re-check of signal pin when boot loader is inactive should also be investigated.

I am also curios why we may want to check if something is pulling signal low while we are pulling signal high. ?

@pitts-mo
Copy link
Contributor Author

pitts-mo commented Nov 8, 2024

Closing to revise fix per @AlkaMotors suggestions via discord.
-we do want signal check pull up to help verify actual pin state.
-staying in bootloader after failing to detect a signal may be desirable in all cases?

@pitts-mo pitts-mo closed this Nov 8, 2024
@pitts-mo pitts-mo deleted the patch-1 branch November 9, 2024 11:47
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