Merge branch 'master' of gitorious.ghostdub.de:avr/thermocouple

master
Dario Ernst 15 years ago
commit cf9c1dc508

@ -70,13 +70,13 @@ int __attribute__((noreturn)) main(void) {
for(uint8_t active_sensor=0; active_sensor<2; active_sensor++) { // only measuring two probes atm
printf("=== active sensor: %i\n",active_sensor);
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);
}
}

Loading…
Cancel
Save