dbrgn / shtcx-rs

Platform agnostic Rust driver for the Sensirion SHTCx temperature/humidity sensors.
Apache License 2.0
13 stars 4 forks source link

Use polling (NACK) instead of fixed sleep durations #38

Open dbrgn opened 4 months ago

dbrgn commented 4 months ago

Right now we use fixed sleep durations, because prior to embedded-hal 1 there was no way to detect a NACK in a hardware-independent way.

Now that there's ErrorKind::NoAcknowledge, we could poll instead.