From 12ca1331ce856ae8694f53703ea40d73b533a0d9 Mon Sep 17 00:00:00 2001 From: henyxia Date: Wed, 6 May 2015 11:41:14 +0200 Subject: [PATCH] Heat now threaded --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 757bb54..e59ef7e 100644 --- a/main.c +++ b/main.c @@ -9,7 +9,6 @@ #include "heat.h" #include "pump.h" - int main(void) { int ret; @@ -17,6 +16,7 @@ int main(void) pthread_t tNFC; pthread_t tBUS; pthread_t tHVC; + pthread_t tHeat; initUILog(); if(!initLog()) { @@ -48,8 +48,8 @@ int main(void) pthread_create(&tHVC, NULL, processHVC, NULL); initProcessHeat(); initProcessPump(); - setPumpOn(); - processHeat(NULL); + //setPumpOn(); + pthread_create(&tHeat, NULL, processHeat, NULL); pthread_join(tUI, NULL); closeLog(); -- libgit2 0.21.2