bogde / HX711

An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
MIT License
896 stars 538 forks source link

Prevent sketch lock-up if read (or begin) fail #165

Open r-a-i opened 4 years ago

r-a-i commented 4 years ago

This solves an issue where a sketch/board that does not have a properly connected HX711 locks up. This solution returns a zero value to tell the downstream code that there was an error.

amotl commented 4 years ago

Dear Rodrigo,

174 by @HamidSaffari might have solved the same issue but differently. Will you be able to check?

With kind regards, Andreas.