Subversion Repositories FlightCtrl

Rev

Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 143
Line 55... Line 55...
55
{
55
{
56
 static unsigned int crc;
56
 static unsigned int crc;
57
 static unsigned char crc1,crc2,buf_ptr;
57
 static unsigned char crc1,crc2,buf_ptr;
58
 static unsigned char UartState = 0;
58
 static unsigned char UartState = 0;
59
 unsigned char CrcOkay = 0;
59
 unsigned char CrcOkay = 0;
60
 
-
 
61
 SioTmp = UDR;
60
 SioTmp = UDR;
-
 
61
 //Salvo 11.9.2007 GPS Daten holen
-
 
62
 Get_Ublox_Msg(SioTmp); // Daten vom GPS Modul holen
-
 
63
 // Salvo End
62
 if(buf_ptr >= MAX_EMPFANGS_BUFF)    UartState = 0;
64
 if(buf_ptr >= MAX_EMPFANGS_BUFF)    UartState = 0;
63
 if(SioTmp == '\r' && UartState == 2)
65
 if(SioTmp == '\r' && UartState == 2)
64
  {
66
  {
65
   UartState = 0;
67
   UartState = 0;
66
   crc -= RxdBuffer[buf_ptr-2];
68
   crc -= RxdBuffer[buf_ptr-2];