fixed dht22 driver
This commit is contained in:
parent
51a4960fa8
commit
0b9f03f442
@ -207,8 +207,8 @@ value(int type)
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
dht22_read_all(int *temperature, int *humidity)
|
||||
int16_t
|
||||
dht22_read_all(int16_t *temperature, int16_t *humidity)
|
||||
{
|
||||
if((temperature == NULL) || (humidity == NULL)) {
|
||||
PRINTF("DHT22: Invalid arguments\n");
|
||||
|
@ -99,7 +99,7 @@
|
||||
* \name DHT22 auxiliary functions
|
||||
* @{
|
||||
*/
|
||||
int dht22_read_all(int *temperature, int *humidity);
|
||||
int16_t dht22_read_all(int16_t *temperature, int16_t *humidity);
|
||||
/** @} */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
#define DHT22_SENSOR "DHT22 sensor"
|
||||
|
@ -55,7 +55,7 @@ static struct etimer et;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
PROCESS_THREAD(remote_dht22_process, ev, data)
|
||||
{
|
||||
int temperature, humidity;
|
||||
int16_t temperature, humidity;
|
||||
|
||||
PROCESS_BEGIN();
|
||||
SENSORS_ACTIVATE(dht22);
|
||||
|
Loading…
Reference in New Issue
Block a user