NEW: #1 Mysql support, makefile and readme update, sensor struct update

This commit is contained in:
2017-01-28 13:56:47 +01:00
parent 2167638d2b
commit c8182dafec
7 changed files with 104 additions and 10 deletions

View File

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