Skip to content

Commit

Permalink
fixup: driver: wait for init
Browse files Browse the repository at this point in the history
  • Loading branch information
LudwigKnuepfer committed May 16, 2015
1 parent 53a414b commit 14c556c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/dht/dht.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ int dht_init(dht_t *dev, dht_type_t type, gpio_t gpio)
gpio_init_out(gpio, GPIO_PULLUP);
gpio_set(gpio);

hwtimer_wait(HWTIMER_TICKS(2000 * MS_IN_USEC));

DEBUG("dht_init: success\n");
return 0;
}
Expand Down

0 comments on commit 14c556c

Please sign in to comment.