Subversion Repositories NaviCtrl

Rev

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

Rev 196 Rev 199
Line 193... Line 193...
193
                                        case UART_FLIGHTCTRL:
193
                                        case UART_FLIGHTCTRL:
194
                                                UART2_Init();                           // initialize UART2 to FC pins
194
                                                UART2_Init();                           // initialize UART2 to FC pins
195
                                                DebugUART = UART2;
195
                                                DebugUART = UART2;
196
                                                break;
196
                                                break;
197
                                        case UART_MK3MAG:
197
                                        case UART_MK3MAG:
198
                                                if(FC.MKFlags & MKFLAG_MOTOR_RUN) break; // not if the motors are running
198
                                                if(FC.Flags & FCFLAG_MOTOR_RUN) break; // not if the motors are running
199
                                                UART0_Connect_to_MK3MAG();      // mux UART0 to MK3MAG pins
199
                                                UART0_Connect_to_MK3MAG();      // mux UART0 to MK3MAG pins
200
                                                GPSData.Status = INVALID;
200
                                                GPSData.Status = INVALID;
201
                                                DebugUART = UART0;
201
                                                DebugUART = UART0;
202
                                                break;
202
                                                break;
203
                                        case UART_MKGPS:
203
                                        case UART_MKGPS:
204
                                                if(FC.MKFlags & MKFLAG_MOTOR_RUN) break; // not if the motors are running
204
                                                if(FC.Flags & FCFLAG_MOTOR_RUN) break; // not if the motors are running
205
                                                UART0_Connect_to_MKGPS();       // connect UART0 to MKGPS pins
205
                                                UART0_Connect_to_MKGPS();       // connect UART0 to MKGPS pins
206
                                                GPSData.Status = INVALID;
206
                                                GPSData.Status = INVALID;
207
                                                DebugUART = UART0;
207
                                                DebugUART = UART0;
208
                                                break;
208
                                                break;
209
                                }
209
                                }