From df451d72fd536efbc45b3e1948460f6e84819c49 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 13 Jul 2015 12:37:51 +0200 Subject: [PATCH] mendel.c: set SIMINFO serial port only when BAUD is available. This was found by running the new regression tests. --- mendel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mendel.c b/mendel.c index 5964f5e..de3095c 100644 --- a/mendel.c +++ b/mendel.c @@ -57,8 +57,10 @@ #include "../simulavr/src/simulavr_info.h" SIMINFO_DEVICE(MCU_STR); SIMINFO_CPUFREQUENCY(F_CPU); - SIMINFO_SERIAL_IN("D0", "-", BAUD); - SIMINFO_SERIAL_OUT("D1", "-", BAUD); + #ifdef BAUD + SIMINFO_SERIAL_IN("D0", "-", BAUD); + SIMINFO_SERIAL_OUT("D1", "-", BAUD); + #endif #endif #ifdef CANNED_CYCLE