Skip to content

Releases: WifWaf/MH-Z19

Temperature fix for firmware versions over 5.

28 Jul 22:35
49658e5
Compare
Choose a tag to compare

The temperature of the sensor for firmware versions greater than 5 has received a fix.

04a6f85 Please note: older versions no longer offer a float argument for the getTemperature() function. Instead, the value returned is in accordance with the datasheet. This is due to the float version being somewhat unreliable. As a result, temperature values received in older library versions will see an increase by 2C as the offset used in the datasheet differed.

The firmware version (the major version) is obtained on initiation and used to determine which temperature code to run.

Please report any issues as there are many firmware versions and I have only two sensors.

Fixes. Examples now match new datasheets,

27 Dec 20:12
Compare
Choose a tag to compare

9bd326d CalibrateZero has been moved to Calibrate to avoid confusion, however backward compatibility is present so 'shouldn't' break existing projects.

Desync issues will hopefully be alleviated as the UART buffer was not being cleared on data mismatches.

f534018 Function moved (alias added in next patch), examples updated and code cleaned up.

7c3a958 Manual calibration will now no longer causes some micronctrollers to crash every 12 hours.

Other minor changes to the code 'shouldn't' cause issues.