Commit 12ca1331ce856ae8694f53703ea40d73b533a0d9

Authored by henyxia
1 parent b4a7f4ac

Heat now threaded

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
@@ -9,7 +9,6 @@ @@ -9,7 +9,6 @@
9 #include "heat.h" 9 #include "heat.h"
10 #include "pump.h" 10 #include "pump.h"
11 11
12 -  
13 int main(void) 12 int main(void)
14 { 13 {
15 int ret; 14 int ret;
@@ -17,6 +16,7 @@ int main(void) @@ -17,6 +16,7 @@ int main(void)
17 pthread_t tNFC; 16 pthread_t tNFC;
18 pthread_t tBUS; 17 pthread_t tBUS;
19 pthread_t tHVC; 18 pthread_t tHVC;
  19 + pthread_t tHeat;
20 initUILog(); 20 initUILog();
21 if(!initLog()) 21 if(!initLog())
22 { 22 {
@@ -48,8 +48,8 @@ int main(void) @@ -48,8 +48,8 @@ int main(void)
48 pthread_create(&tHVC, NULL, processHVC, NULL); 48 pthread_create(&tHVC, NULL, processHVC, NULL);
49 initProcessHeat(); 49 initProcessHeat();
50 initProcessPump(); 50 initProcessPump();
51 - setPumpOn();  
52 - processHeat(NULL); 51 + //setPumpOn();
  52 + pthread_create(&tHeat, NULL, processHeat, NULL);
53 53
54 pthread_join(tUI, NULL); 54 pthread_join(tUI, NULL);
55 closeLog(); 55 closeLog();