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