From: Michel Pollet Date: Wed, 10 Jun 2015 20:00:02 +0000 (+0100) Subject: adc: Removed spurious trace X-Git-Tag: v1.6~73 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=dbcd8541fdbdd487a0839c8bb8d5ebf387b9c9dd;p=sx%2Fsimavr.git adc: Removed spurious trace Accidentally commited this earlier Signed-off-by: Michel Pollet --- diff --git a/simavr/sim/avr_adc.c b/simavr/sim/avr_adc.c index ee6abb8..ad64b9e 100644 --- a/simavr/sim/avr_adc.c +++ b/simavr/sim/avr_adc.c @@ -238,8 +238,7 @@ avr_adc_write_adcsra( uint32_t v; } e = { .mux = p->muxmode[muxi] }; avr_raise_irq(p->io.irq + ADC_IRQ_OUT_TRIGGER, e.v); - if (muxi == 0) - printf("Start ADC %d\n", muxi); + // clock prescaler are just a bit shift.. and 0 means 1 uint32_t div = avr_regbit_get_array(avr, p->adps, ARRAY_SIZE(p->adps)); if (!div) div++;