Add one line and most of your problems will go away.
fans_off:
low low_fan
low high_fan
return
Type: Posts; User: Charles Linquis; Keyword(s):
Add one line and most of your problems will go away.
fans_off:
low low_fan
low high_fan
return
My guess is that if you clear V_total, you won't need anything else.
Consider:
If the A/D returns a value of 410
1st time through the loop
V_Total = 200
It doesn't look like you are clearing V_total every time before you go into your A/D routine.