
Originally Posted by
mark_s
What happens if you read the temperature first right before the swap statement. The last sensor reading will now be in the temp variable. It can now be stored in Radiator_Temp or Block_temp. The way you have it now it reads the temperature to temp and exits the subroutine.
Thanks Mark,
That's all it took, I changed it like you suggested and it works perfectly now. Thanks for your help I really appreciate it.
Thanks Again
jessey
Code:
If I = 0 Then
Sensor_Select = Radiator_Sensor
GOSUB Check_Temperature
Radiator_temp = temp
Endif
If I = 1 Then
Sensor_Select = Block_Sensor
GOSUB Check_Temperature
Block_temp = temp
Endif
Bookmarks