Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Move formerly global variables in Adafruit_DHT driver into readDHT function #72

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Adafruit_DHT_Driver/Adafruit_DHT
Binary file not shown.
4 changes: 2 additions & 2 deletions Adafruit_DHT_Driver/Adafruit_DHT.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ int main(int argc, char **argv)
} // main


int bits[250], data[100];
int bitidx = 0;

int readDHT(int type, int pin) {
int bits[250], data[100];
int bitidx = 0;
int counter = 0;
int laststate = HIGH;
int j=0;
Expand Down