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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/humidity_sensors/app/main.c b/humidity_sensors/app/main.c
index 6f15cdf..6c9e602 100644
--- a/humidity_sensors/app/main.c
+++ b/humidity_sensors/app/main.c
@@ -15,9 +15,11 @@ main (void)
sht20_reset();
- enableInterrupts ();
+ enableInterrupts();
for (;;) {
+ sht20_setup();
+
printf ("$SNTHD,%s,%s\n", sht20_temp_s(), sht20_humid_s());
while (!uart_rx (&c)) {
@@ -25,8 +27,8 @@ main (void)
sht20_reset();
}
- delay_ms(10);
+ delay_ms (10);
halt();
- delay_ms(10);
+ delay_ms (10);
}
}