make dht22 errors unsigned int, so we don't wrap into negative
[Arduino] / rpi_promini / rpi_promini.ino
index 6e44796..38d318d 100644 (file)
@@ -5,7 +5,7 @@
   RPI pin  Arduino
   RXD      TXD
   TXD      RXD
-  GPIO6    RST
+  BCM25    RST
   GND      GND
   +5V      RAW
 
@@ -107,7 +107,7 @@ void setup() {
 int serial_pos = 0;
 char serial_data[2]; // socket (0-9), state (0-1)
 char binary_data[32];
-int dht22_errors = 0;
+unsigned int dht22_errors = 0;
 
 unsigned long time = millis();