variables defined
Posted: Wed Jan 23, 2013 5:57 pm
working with this bit of code:
where are those three variables defined; I imagine HeaterRelay is the port where the StandardHeater2 is plugged in, LowTemp and HighTemp are what they seem; but can't find where the original coder defined those variables.
He does have this snippet in the loop section, is this it?
Thx in advance.
Code: Select all
void StandardHeater2(byte HeaterRelay, int LowTemp, int HighTemp)
{
if (ReefAngel.Params.Temp[T2_PROBE] == 0) return; // Don't turn the heater on if the temp is reading 0
if (ReefAngel.Params.Temp[T2_PROBE] <= LowTemp && ReefAngel.Params.Temp[T2_PROBE] > 0) ReefAngel.Relay.On(HeaterRelay); // If sensor temperature <= LowTemp - turn on heater
if (ReefAngel.Params.Temp[T2_PROBE] >= HighTemp) ReefAngel.Relay.Off(HeaterRelay); // If sensor temperature >= HighTemp - turn off heaterHe does have this snippet in the loop section, is this it?
Code: Select all
StandardHeater2( Box1_Port6,776,780 ); //SumpHeater