|
|
|
|
@ -72,7 +72,6 @@ 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);
|
|
|
|
|
@ -101,7 +100,7 @@ int __attribute__((noreturn)) main(void) {
|
|
|
|
|
|
|
|
|
|
// measure ambient
|
|
|
|
|
printf("====== now measuring ambient\n");
|
|
|
|
|
muxer_set(5);
|
|
|
|
|
muxer_set(4);
|
|
|
|
|
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);
|
|
|
|
|
|