From: Daniƫl Geelen Date: Thu, 5 Apr 2018 18:00:15 +0000 (+0200) Subject: Log statements in avr_load_firmware() were never printed. X-Git-Tag: v1.7~49^2~1 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=6054ef1f3c8fe2809cc8ec3e8ae2f8d0142852f8;p=sx%2Fsimavr.git Log statements in avr_load_firmware() were never printed. --- diff --git a/simavr/sim/run_avr.c b/simavr/sim/run_avr.c index c39d474..531f3a2 100644 --- a/simavr/sim/run_avr.c +++ b/simavr/sim/run_avr.c @@ -183,13 +183,13 @@ main( exit(1); } avr_init(avr); + avr->log = (log > LOG_TRACE ? LOG_TRACE : log); + avr->trace = trace; avr_load_firmware(avr, &f); if (f.flashbase) { printf("Attempted to load a bootloader at %04x\n", f.flashbase); avr->pc = f.flashbase; } - avr->log = (log > LOG_TRACE ? LOG_TRACE : log); - avr->trace = trace; for (int ti = 0; ti < trace_vectors_count; ti++) { for (int vi = 0; vi < avr->interrupts.vector_count; vi++) if (avr->interrupts.vector[vi]->vector == trace_vectors[ti])