From 5a998558a90bd49867cf3216938c8baa1a0f4729 Mon Sep 17 00:00:00 2001 From: daid303 Date: Tue, 6 Nov 2012 21:04:29 +0100 Subject: [PATCH] Update suggested by Robert F-C. #289 --- Marlin/MarlinSerial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/MarlinSerial.h b/Marlin/MarlinSerial.h index b86c8f3fb1..39731bdd33 100644 --- a/Marlin/MarlinSerial.h +++ b/Marlin/MarlinSerial.h @@ -35,7 +35,7 @@ // These are macros to build serial port register names for the selected SERIAL_PORT (C preprocessor // requires two levels of indirection to expand macro values properly) #define SERIAL_REGNAME(registerbase,number,suffix) SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) -#if defined(UBRRH) +#if SERIAL_PORT == 0 && !defined(UBRR0H) #define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##suffix #else #define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix