summaryrefslogtreecommitdiffstats
path: root/humidity_sensors/app/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'humidity_sensors/app/main.c')
-rw-r--r--humidity_sensors/app/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/humidity_sensors/app/main.c b/humidity_sensors/app/main.c
index a94d681..d7f5908 100644
--- a/humidity_sensors/app/main.c
+++ b/humidity_sensors/app/main.c
@@ -10,9 +10,12 @@ main (void)
uart_init();
i2cb_init();
+ awu_init();
+
sht20_reset();
- //enableInterrupts ();
+
+ enableInterrupts ();
for (;;) {
printf ("$SNTHD,%s,%s\n", sht20_temp_s(), sht20_humid_s());
@@ -22,6 +25,6 @@ main (void)
sht20_reset();
}
- delay_ms (1000);
+ halt();
}
}