diff --git a/firmware/cup.c b/firmware/cup.c index dbba047..a19db2c 100644 --- a/firmware/cup.c +++ b/firmware/cup.c @@ -197,7 +197,18 @@ int main(void) adc_sum = 0; adc_pos = 0; temperature = linearize_temp(temperature_adc); - heat_output = control_output(temperature, target); + 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; + } } }