Subversion Repositories Projects

Rev

Rev 744 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 744 Rev 759
Line 54... Line 54...
54
DebugOut_t              DebugOut;
54
DebugOut_t              DebugOut;
55
UART_VersionInfo_t      UART_VersionInfo;
55
UART_VersionInfo_t      UART_VersionInfo;
Line 56... Line 56...
56
 
56
 
57
uint16_t DebugData_Timer;
57
uint16_t DebugData_Timer;
-
 
58
uint16_t DebugData_Interval = 0; // in 1ms
58
uint16_t DebugData_Interval = 0; // in 1ms
59
uint16_t Display_Timer;
Line 59... Line 60...
59
uint16_t Display_Interval = 0; // in 1 ms
60
uint16_t Display_Interval = 0; // in 1 ms
Line 60... Line 61...
60
 
61
 
Line 495... Line 496...
495
        if(Request_VerInfo && txd_complete)
496
        if(Request_VerInfo && txd_complete)
496
        {
497
        {
497
                SendOutData('V', FM_ADDRESS, 1, (uint8_t *) &UART_VersionInfo, sizeof(UART_VersionInfo));
498
                SendOutData('V', FM_ADDRESS, 1, (uint8_t *) &UART_VersionInfo, sizeof(UART_VersionInfo));
498
                Request_VerInfo = FALSE;
499
                Request_VerInfo = FALSE;
499
        }
500
        }
500
        if( ((DebugData_Interval && CheckDelay(DebugData_Timer)) || Request_Display) && txd_complete)
501
        if( ((Display_Interval && CheckDelay(Display_Timer)) || Request_Display) && txd_complete)
501
        {
502
        {
502
                if(DisplayLine > 3)// new format
503
                if(DisplayLine > 3)// new format
503
                {
504
                {
504
                        LCD_PrintMenu();
505
                        LCD_PrintMenu();
505
                        SendOutData('H', FM_ADDRESS, 1, (uint8_t *)DisplayBuff, 80);
506
                        SendOutData('H', FM_ADDRESS, 1, (uint8_t *)DisplayBuff, 80);
Line 508... Line 509...
508
                {
509
                {
509
                        LCD_printfxy(0,0,"!!! INCOMPATIBLE !!!");
510
                        LCD_printfxy(0,0,"!!! INCOMPATIBLE !!!");
510
                        SendOutData('H', FC_ADDRESS, 2, &DisplayLine, sizeof(DisplayLine), (uint8_t *)DisplayBuff, 20);
511
                        SendOutData('H', FC_ADDRESS, 2, &DisplayLine, sizeof(DisplayLine), (uint8_t *)DisplayBuff, 20);
511
                        if(DisplayLine++ > 3) DisplayLine = 0;
512
                        if(DisplayLine++ > 3) DisplayLine = 0;
512
                }
513
                }
-
 
514
                Display_Timer = SetDelay(Display_Interval);
513
                Request_Display = FALSE;
515
                Request_Display = FALSE;
514
        }
516
        }
515
        if(Request_Display1 && txd_complete)
517
        if(Request_Display1 && txd_complete)
516
        {
518
        {
517
                LCD_PrintMenu();
519
                LCD_PrintMenu();