Library for reading temperature from DS1820, DS18B20 and DS1822

Dependencies:   LinkedList

Dependents:   heatmap BLE_Temperature BLE_Temperature_Exercise F334andDS18B20 ... more

Fork of DS1820 by David Pairman

This pull request has been accepted and merged in by Erik -

bug corrections

Thanks for your great library I corrected found two bugs in your library: _the temperature reading is incorrect (systematic error in subdegree, the division by two was not done correctly + trunc, see below for correction) _one variable, _power_mosfet, was left unitialized under some conditions

I corrected found two bugs in your library: _the temperature reading is incorrect (systematic error in subdegree, the division by two was not done correctly + trunc, see below for …

1 comment:

30 Jan 2015

Good finds. I never verified temperature code since it seemed to be correct, and the _power_mosfet variable will often go correct (always maybe even?), but definately not the correct way to do it.

I accept these, and add you as developer, if you run into other enhancements you can directly push them to the library yourself :).