Moved initialization of the SHT11 until after other initialization: this seems to fix a bug where the SHT11 temperature and humidity values started varying wildly.
This commit is contained in:
parent
ee4862f082
commit
8e5d255b5b
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)$Id: contiki-sky-main.c,v 1.33 2008/07/07 23:44:58 adamdunkels Exp $
|
||||
* @(#)$Id: contiki-sky-main.c,v 1.34 2008/07/08 08:23:24 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
#include <signal.h>
|
||||
|
@ -232,6 +232,7 @@ main(int argc, char **argv)
|
|||
process_start(&sensors_process, NULL);
|
||||
|
||||
sensors_light_init();
|
||||
sht11_init();
|
||||
|
||||
ctimer_init();
|
||||
|
||||
|
|
Loading…
Reference in a new issue