From ac38c6b0a047f1305837da35f774859097a50305 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 18 Apr 2012 12:47:56 +0000 Subject: [PATCH] Compilation error and warning with nmea and ardupilot options --- src/ardupilot.cpp | 4 ++-- src/nmea.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ardupilot.cpp b/src/ardupilot.cpp index ae0bfed5a..df1c51838 100644 --- a/src/ardupilot.cpp +++ b/src/ardupilot.cpp @@ -174,7 +174,7 @@ void initval(uint8_t num, uint8_t pack, uint8_t val); ISR (USART0_RX_vect) { uint8_t rl; - uint8_t rh; //USART control and Status Register 0 B +// uint8_t rh; //USART control and Status Register 0 B uint8_t iostat; //USART control and Status Register 0 A rl = UDR0; @@ -197,7 +197,7 @@ ISR (USART0_RX_vect) rl = xpack[0] = xpack[1] = xval[0] = xval[1] = 0; state = WAIT_PACKET; // restart on error } - rh = UCSR0B; //USART control and Status Register 0 B + // rh = UCSR0B; //USART control and Status Register 0 B /* bit 7 6 5 4 3 2 1 0 RxCIE0 TxCIE0 UDRIE0 RXEN0 TXEN0 UCSZ02 RXB80 TXB80 diff --git a/src/nmea.cpp b/src/nmea.cpp index 91e74b226..1b92b3d47 100644 --- a/src/nmea.cpp +++ b/src/nmea.cpp @@ -186,7 +186,7 @@ int32_t bintime (char *str); ISR (USART0_RX_vect) { uint8_t rl; -// uint8_t rh; //USART control and Status Register 0 B + // uint8_t rh; //USART control and Status Register 0 B uint8_t iostat; //USART control and Status Register 0 A rl = UDR0; @@ -210,7 +210,7 @@ ISR (USART0_RX_vect) initval (LONG_BUF(2), PACK_GGA, TIM); // always get UTC time for timer state = WAIT_PACKET; // restart on error } - rh = UCSR0B; //USART control and Status Register 0 B + // rh = UCSR0B; //USART control and Status Register 0 B /* bit 7 6 5 4 3 2 1 0 RxCIE0 TxCIE0 UDRIE0 RXEN0 TXEN0 UCSZ02 RXB80 TXB80