From 89f16443c2ef8e6075dc542e7d9b865c30e6715d Mon Sep 17 00:00:00 2001 From: Snafu Date: Fri, 14 Oct 2016 03:11:56 +0200 Subject: [PATCH] Fixed UART 3 check If UART 3 is selected it should be checked if UDR3 is defined and not if UDR1 is defined. --- optiboot/bootloaders/optiboot/pin_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optiboot/bootloaders/optiboot/pin_defs.h b/optiboot/bootloaders/optiboot/pin_defs.h index 6570671..a352e06 100644 --- a/optiboot/bootloaders/optiboot/pin_defs.h +++ b/optiboot/bootloaders/optiboot/pin_defs.h @@ -61,7 +61,7 @@ # define UART_SRL UBRR2L # define UART_UDR UDR2 #elif UART == 3 -#if !defined(UDR1) +#if !defined(UDR3) #error UART == 3, but no UART3 on device #endif # define UART_SRA UCSR3A