fixed dht22 driver

This commit is contained in:
Antonio Iannopollo 2018-05-09 19:29:24 -07:00
parent 51a4960fa8
commit 0b9f03f442
3 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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"

View File

@ -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);