danielgallagher0 / hts221

Rust crate to interface with the STMicro HTS221 sensor
Apache License 2.0
9 stars 3 forks source link

Return an error for out-of-spec conditions #3

Open danielgallagher0 opened 6 years ago

danielgallagher0 commented 6 years ago

If the rH% is less than 0 or greater than 100, we should return an error (which should include the erroneous value). Similarly for temperature, which has an operating range of -40 to 120 deg C.