sparkfun / SparkFun_SCD30_Arduino_Library

An Arduino library for the SCD30 NDIR CO2 sensor.
Other
84 stars 47 forks source link

getMeasurementInterval() is not implemented! #26

Closed physikant closed 3 years ago

physikant commented 3 years ago

I noticed that the getMeasurementInterval() function is not implemented. I'm not an experienced C programmer, but I managed to implement it myself by adding "uint16_t getMeasurementInterval(void); " on line 96 of the header file and adding "//Get the measurement interval. See 1.3.8. uint16_t SCD30::getMeasurementInterval(void) { return readRegister(COMMAND_SET_MEASUREMENT_INTERVAL); }" to the cpp file.

nseidle commented 3 years ago

It is already implemented, but a helper function would be nice. I'll see what I can do.

nseidle commented 3 years ago

Checkout ex 2 in the latest release. Please let us know if you have problems.

physikant commented 3 years ago

Great, it is working for me. Thanks a lot!

nseidle commented 3 years ago

Good to hear!