Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS/CC2640R2F: [BUG]-- HDC2010_setTempLimit() of i2chdc2010 example set incorrect value

$
0
0

Part Number:CC2640R2F

Tool/software: TI-RTOS

example project: i2chdc2010 , simplelink sensor and actuator plugin example

HDC2010_setTempLimit of hdc2010.c, line 308,309

    hi_temp = (int16_t)((high * MAX_CELSIUS_PER_LSB) + 40U);
    lo_temp = (int16_t)((low * MAX_CELSIUS_PER_LSB) + 40U);

according to doc http://www.ti.com/lit/ds/symlink/hdc2080.pdf ,formula (5) and (6) on page 24, it should be

    hi_temp = (int16_t)((high + 40U) * MAX_CELSIUS_PER_LSB);
    lo_temp = (int16_t)((low + 40U) * MAX_CELSIUS_PER_LSB);

Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>