NEW: #1 Mysql support, makefile and readme update, sensor struct update
This commit is contained in:
4
dht22.c
4
dht22.c
@@ -31,12 +31,12 @@ static uint8_t sizecvt(const int read)
|
||||
return (uint8_t)read;
|
||||
}
|
||||
|
||||
static int read_dht22_dat(int pin, sensor *s)
|
||||
static int read_dht22_dat(sensor *s)
|
||||
{
|
||||
uint8_t laststate = HIGH;
|
||||
uint8_t counter = 0;
|
||||
uint8_t j = 0, i;
|
||||
DHTPIN = pin;
|
||||
DHTPIN = s->pin;
|
||||
|
||||
dht22_dat[0] = dht22_dat[1] = dht22_dat[2] = dht22_dat[3] = dht22_dat[4] = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user