Fix HDC sensor reading conversion

contiki
Atis Elsts 2017-04-05 12:23:26 +01:00
parent fbffcc2dfc
commit f6a2c4ea3f
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ static void
convert(float *temp, float *hum)
{
/* Convert temperature to degrees C */
*temp = ((double)(int16_t)raw_temp / 65536) * 165 - 40;
*temp = ((double)raw_temp / 65536) * 165 - 40;
/* Convert relative humidity to a %RH value */
*hum = ((double)raw_hum / 65536) * 100;