Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 35 → Rev 36

/branches/V0.1 killagreg/main.c
156,7 → 156,7
// initialize the LEDs (needs Timer 1)
Led_Init();
// initialize the debug UART1
//UART1_Init();
UART1_Init();
OutputStartupData();
// initialize UART2 to FLIGHTCTRL
UART2_Init();
/branches/V0.1 killagreg/ubx.c
398,10 → 398,17
break;
 
case UBXSTATE_DATA: // collecting data
if (ubxP < ubxEp) *ubxP++ = c; // copy curent data byte if any space is left
cka += c;
ckb += cka;
if (--msglen == 0) ubxState = UBXSTATE_CKA; // switch to next state if all data was read
if (ubxP < ubxEp)
{
*ubxP++ = c; // copy curent data byte if any space is left
cka += c;
ckb += cka;
if (--msglen == 0) ubxState = UBXSTATE_CKA; // switch to next state if all data was read
}
else // rx buffer overrun
{
ubxState = UBXSTATE_IDLE;
}
break;
 
case UBXSTATE_CKA: