Telemetry bugfixes

This commit is contained in:
bsongis
2014-05-15 21:08:04 +02:00
parent b376192b61
commit 6b3c4c8cfe
5 changed files with 94 additions and 90 deletions
@@ -50,7 +50,7 @@ void telemetryEnableRx(void)
}
void processSerialData(uint8_t data);
extern uint8_t numPktBytes; // TODO not driver, change name
extern uint8_t frskyRxBufferCount; // TODO not driver, change name
ISR(USART0_RX_vect)
{
@@ -95,7 +95,7 @@ ISR(USART0_RX_vect)
if (stat & ((1 << FE0) | (1 << DOR0) | (1 << UPE0))) {
// discard buffer and start fresh on any comms error
numPktBytes = 0;
frskyRxBufferCount = 0;
}
else {
processSerialData(data);