Closed OtacilioN closed 6 years ago
Add timeout feature without using pulseIn timeout function, completing the removal of the pulseIn function, it fixes #45
add an and verification in the while that waits for the pulse get back to also verify if the current time is lowest or equal to the timeout
Now is fully compatible with pulseIn but also compatible with platforms that pulseIn does not works
Hi @OtacilioN, thank you for your contribution 👍
Would not it be nice to do the same timeout check in a first while?
timeout
while
RIght @ErickSimoes add in the first while too!
Very good! It was wonderful, thank you! ❤️
Summary
Add timeout feature without using pulseIn timeout function, completing the removal of the pulseIn function, it fixes #45
Description of the Change
add an and verification in the while that waits for the pulse get back to also verify if the current time is lowest or equal to the timeout
Benefits
Now is fully compatible with pulseIn but also compatible with platforms that pulseIn does not works