Fixed the analog ISR since it originally wasn't starting a new conversion after the ADC interrupt was re-enabled. Then changed it again to do continuous ADC conversions because the on-demand disable was causing a 250ms lag between when the ADC was sampled and when the PID logic used the value.
Fixed the raw temp conversion in temp.c, the scaling was wrong when converting to 14.2 pseudo float.
Changed temp_tick so that the temp is always updated so M105 works before and after M104 has a set point.
Changed REFERENCE in config.h.dist to AVCC, this is the default stock arduino analogRead uses and the only value allowed by official FiveD firmware.
Fixed the analog ISR since it originally wasn't starting a new conversion after the ADC interrupt was re-enabled. Then changed it again to do continuous ADC conversions because the on-demand disable was causing a 250ms lag between when the ADC was sampled and when the PID logic used the value.
Fixed the raw temp conversion in temp.c, the scaling was wrong when converting to 14.2 pseudo float.
Changed temp_tick so that the temp is always updated so M105 works before and after M104 has a set point.
Changed REFERENCE in config.h.dist to AVCC, this is the default stock arduino analogRead uses and the only value allowed by official FiveD firmware.