Compilation error and warning with nmea and ardupilot options

This commit is contained in:
bsongis
2012-04-18 12:47:56 +00:00
parent 148f64cca1
commit ac38c6b0a0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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