Subversion Repositories NaviCtrl

Rev

Rev 254 | Rev 261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 254 Rev 255
Line 419... Line 419...
419
                                                fifo_purge(&UART1_rx_fifo);
419
                                                fifo_purge(&UART1_rx_fifo);
420
                                                TIMER2_Deinit();                        // reduce irq load
420
                                                TIMER2_Deinit();                        // reduce irq load
421
                                                DebugUART = UART2;
421
                                                DebugUART = UART2;
422
                                                break;
422
                                                break;
423
                                        case UART_MK3MAG:
423
                                        case UART_MK3MAG:
424
                                                if(FC.Flags & FCFLAG_MOTOR_RUN) break; // not if the motors are running
424
                                                if(FC.StatusFlags & FC_STATUS_MOTOR_RUN) break; // not if the motors are running
425
                                                UART0_Connect_to_MK3MAG();      // mux UART0 to MK3MAG pins
425
                                                UART0_Connect_to_MK3MAG();      // mux UART0 to MK3MAG pins
426
                                                GPSData.Status = INVALID;
426
                                                GPSData.Status = INVALID;
427
                                                fifo_purge(&UART1_rx_fifo);
427
                                                fifo_purge(&UART1_rx_fifo);
428
                                                DebugUART = UART0;
428
                                                DebugUART = UART0;
429
                                                break;
429
                                                break;
430
                                        case UART_MKGPS:
430
                                        case UART_MKGPS:
431
                                                if(FC.Flags & FCFLAG_MOTOR_RUN) break; // not if the motors are running
431
                                                if(FC.StatusFlags & FC_STATUS_MOTOR_RUN) break; // not if the motors are running
432
                                                TIMER2_Deinit();                        // disable servo outputs to reduce irq load
432
                                                TIMER2_Deinit();                        // disable servo outputs to reduce irq load
433
                                                UART0_Connect_to_MKGPS(UART0_BAUD_RATE);        // connect UART0 to MKGPS pins
433
                                                UART0_Connect_to_MKGPS(UART0_BAUD_RATE);        // connect UART0 to MKGPS pins
434
                                                GPSData.Status = INVALID;
434
                                                GPSData.Status = INVALID;
435
                                                fifo_purge(&UART1_rx_fifo);
435
                                                fifo_purge(&UART1_rx_fifo);
436
                                                DebugUART = UART0;
436
                                                DebugUART = UART0;