Rev 179 | Rev 184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 179 | Rev 180 | ||
---|---|---|---|
Line 389... | Line 389... | ||
389 | switch(SerialMsg.pData[0]) |
389 | switch(SerialMsg.pData[0]) |
390 | { |
390 | { |
391 | case UART_FLIGHTCTRL: |
391 | case UART_FLIGHTCTRL: |
392 | UART2_Init(); // initialize UART2 to FC pins |
392 | UART2_Init(); // initialize UART2 to FC pins |
393 | fifo_purge(&UART1_rx_fifo); |
393 | fifo_purge(&UART1_rx_fifo); |
- | 394 | TIMER2_Deinit(); // reduce irq load |
|
394 | DebugUART = UART2; |
395 | DebugUART = UART2; |
395 | break; |
396 | break; |
396 | case UART_MK3MAG: |
397 | case UART_MK3MAG: |
397 | if(FC.MKFlags & MKFLAG_MOTOR_RUN) break; // not if the motors are running |
398 | if(FC.MKFlags & MKFLAG_MOTOR_RUN) break; // not if the motors are running |
398 | UART0_Connect_to_MK3MAG(); // mux UART0 to MK3MAG pins |
399 | UART0_Connect_to_MK3MAG(); // mux UART0 to MK3MAG pins |