aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2019-04-29 10:20:40 -0400
committerClyne Sullivan <tullivan99@gmail.com>2019-04-29 10:20:40 -0400
commitf8887251a7dd158490c7bcb3ba4cd7757fb7f2f7 (patch)
tree8f5bcce7dbd46d7b9346b45f45d2856af7377771 /main.c
parent249fa2dd7bcd8ed0be64a1a1b36da499d6bbaca1 (diff)
temperature sensor draft
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index ed788a5..257cebf 100644
--- a/main.c
+++ b/main.c
@@ -19,12 +19,17 @@
*/
#include "board.h"
+#include "temp.h"
void main(void)
{
// Prepare processor and IO
boardInit();
+ // Prepare temperature sensor
+ if (tempInit() != 0)
+ while (1); // Sensor error, halt
+
while (1);
}