Rev 460 | Rev 465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 460 | Rev 461 | ||
---|---|---|---|
Line 538... | Line 538... | ||
538 | TransmitAlsoToFC = 0; |
538 | TransmitAlsoToFC = 0; |
539 | #else |
539 | #else |
540 | SPI0_GetFlightCtrlVersion(); |
540 | SPI0_GetFlightCtrlVersion(); |
541 | if(FC_Version.Compatible != FC_SPI_COMPATIBLE) |
541 | if(FC_Version.Compatible != FC_SPI_COMPATIBLE) |
542 | { |
542 | { |
543 | UART1_PutString("\n\r Flight-Ctrl not compatible"); |
543 | UART1_PutString("\n\r Flight-Ctrl not compatible\n\r"); |
544 | LED_RED_ON; |
544 | LED_RED_ON; |
545 | } |
545 | } |
546 | #endif |
546 | #endif |
547 | // ---------- Prepare the isr driven |
547 | // ---------- Prepare the isr driven |
548 | // set to absolute lowest priority |
548 | // set to absolute lowest priority |
Line 554... | Line 554... | ||
554 | UART1_PutString("\r\n"); |
554 | UART1_PutString("\r\n"); |
555 | fifo_purge(&UART1_rx_fifo); // flush the whole fifo init buffer |
555 | fifo_purge(&UART1_rx_fifo); // flush the whole fifo init buffer |
556 | LED_GRN_ON; |
556 | LED_GRN_ON; |
557 | LED_RED_OFF; |
557 | LED_RED_OFF; |
558 | Settings_GetParamValue(PID_SEND_NMEA, &NMEA_Interval); |
558 | Settings_GetParamValue(PID_SEND_NMEA, &NMEA_Interval); |
559 | - | ||
- | 559 | UART1_PutString("\r\n"); |
|
560 | for (;;) // the endless main loop |
560 | for (;;) // the endless main loop |
561 | { |
561 | { |
562 | Polling(); |
562 | Polling(); |
563 | PollingTimeout = 15; |
563 | PollingTimeout = 15; |
564 | // ---------------- Logging --------------------------------------- |
564 | // ---------------- Logging --------------------------------------- |