ErickSimoes / Ultrasonic

Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino
MIT License
137 stars 65 forks source link

Ensure that the distance reading method does not return negative values. #35

Closed ErickSimoes closed 7 years ago

ErickSimoes commented 7 years ago

It is necessary to investigate cases where the returned value can be negative. In such cases you must ensure that only values equal to or greater than zero can be returned.