mendel.c: set SIMINFO serial port only when BAUD is available.

This was found by running the new regression tests.
This commit is contained in:
Markus Hitter 2015-07-13 12:37:51 +02:00
parent 1eb7e73273
commit df451d72fd
1 changed files with 4 additions and 2 deletions

View File

@ -57,8 +57,10 @@
#include "../simulavr/src/simulavr_info.h" #include "../simulavr/src/simulavr_info.h"
SIMINFO_DEVICE(MCU_STR); SIMINFO_DEVICE(MCU_STR);
SIMINFO_CPUFREQUENCY(F_CPU); SIMINFO_CPUFREQUENCY(F_CPU);
SIMINFO_SERIAL_IN("D0", "-", BAUD); #ifdef BAUD
SIMINFO_SERIAL_OUT("D1", "-", BAUD); SIMINFO_SERIAL_IN("D0", "-", BAUD);
SIMINFO_SERIAL_OUT("D1", "-", BAUD);
#endif
#endif #endif
#ifdef CANNED_CYCLE #ifdef CANNED_CYCLE