@ -197,7 +197,18 @@ int main(void)
adc_sum = 0;
adc_pos = 0;
temperature = linearize_temp(temperature_adc);
if(dev_state)
{
heat_output = control_output(temperature, target);
heat_on[0] = 0;
heat_on[1] = 128;
heat_off[0] = heat_output;
heat_off[1] = heat_output + 128;
}
else
heat_on[0] = heat_on[1] = heat_off[0] = heat_off[1] = 0;