|
|
|
|
@ -68,13 +68,13 @@ int __attribute__((noreturn)) main(void) {
|
|
|
|
|
printf("starting temp measuring\n");
|
|
|
|
|
for(uint8_t active_sensor=0; active_sensor<2; active_sensor++) { // only measuring two probes atm
|
|
|
|
|
muxer_set(active_sensor);
|
|
|
|
|
_delay_ms(1000);
|
|
|
|
|
while(!mcpadc_has_new_data()) _delay_ms(10);
|
|
|
|
|
mcpadc_get_data(); // first data after switch to trash
|
|
|
|
|
while(!mcpadc_has_new_data()) _delay_ms(10);
|
|
|
|
|
|
|
|
|
|
data = mcpadc_get_data();
|
|
|
|
|
process_thermocouple_value(data,active_sensor);
|
|
|
|
|
_delay_ms(1000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|