contiki/platform/z1/dev
Matthieu Baerts 78b6b50194 Z1: tmp102: simple: fixed wrong cast
When using this code:

    (int8_t)tmp102_read_temp_x100() / 100

Only the first value is casted into a int8_t type.

tmp102_read_temp_x100() returns the temperature in Celcius * 100. Most of
the time this value will be lower than -2^7 and higher than 2^7 (+/- 1.27°C).

The cast is not needed but a comment about this implicit cast has been added.
2015-05-22 18:15:26 +02:00
..
adxl345.c
adxl345.h
battery-sensor.c
button-sensor.c
cc2420-arch.c
i2cmaster.c
i2cmaster.h
light-sensor.c
light-sensor.h
light-ziglet.c
light-ziglet.h
light.c
light.h
potentiometer-sensor.c
potentiometer-sensor.h
radio-sensor.c
reed-sensor.c Added Reed Sensor driver and example 2015-03-30 10:30:09 +02:00
reed-sensor.h Added Reed Sensor driver and example 2015-03-30 10:30:09 +02:00
relay-phidget.c
relay-phidget.h
sht11-arch.h
sht25.c Added Reed Sensor driver and example 2015-03-30 10:30:09 +02:00
sht25.h Added Reed Sensor driver and example 2015-03-30 10:30:09 +02:00
sky-sensors.c
sky-sensors.h
temperature-sensor.c
temperature-sensor.h
tlc59116.c
tlc59116.h
tmp102.c Z1: tmp102: simple: fixed wrong cast 2015-05-22 18:15:26 +02:00
tmp102.h
xmem.c
z1-phidgets.c
z1-phidgets.h