Fixed build issue

This commit is contained in:
Ziver Koc 2016-02-24 21:51:16 +01:00
parent bfc7308cce
commit 853f1d0fe8
14 changed files with 172 additions and 115 deletions

View file

@ -15,13 +15,13 @@
// + added references
//
#include "dht11.h"
#include "HardwareDHT11.h"
// returnvalues:
// 0 : OK
// -1 : checksum error
// -2 : timeout
int dht11::read(int pin)
int HardwareDHT11::read()
{
// BUFFER TO RECEIVE
uint8_t bits[5];
@ -80,6 +80,4 @@ int dht11::read(int pin)
if (bits[4] != sum) return -1;
return 0;
}
//
// END OF FILE
//