From dbcd8541fdbdd487a0839c8bb8d5ebf387b9c9dd Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Wed, 10 Jun 2015 21:00:02 +0100 Subject: [PATCH] adc: Removed spurious trace Accidentally commited this earlier Signed-off-by: Michel Pollet --- simavr/sim/avr_adc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++; -- 2.39.5