Subversion Repositories NaviCtrl

Rev

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

Rev 157 Rev 158
Line 92... Line 92...
92
u8 UART1_Request_NewWaypoint    = FALSE;
92
u8 UART1_Request_NewWaypoint    = FALSE;
93
u8 UART1_Request_ReadWaypoint   = 255;
93
u8 UART1_Request_ReadWaypoint   = 255;
94
u8 UART1_Request_Data3D             = FALSE;
94
u8 UART1_Request_Data3D             = FALSE;
95
u8 UART1_Request_Echo               = FALSE;
95
u8 UART1_Request_Echo               = FALSE;
96
u8 UART1_Request_ParameterId    = 0;
96
u8 UART1_Request_ParameterId    = 0;
97
u8 UART1_Request_Parameter              = TRUE;
97
u8 UART1_Request_Parameter              = FALSE;
98
u8 UART1_DisplayLine                    = 0;
98
u8 UART1_DisplayLine                    = 0;
99
u8 UART1_ConfirmFrame                   = 0;
99
u8 UART1_ConfirmFrame                   = 0;
Line 100... Line 100...
100
 
100
 
Line 576... Line 576...
576
 
576
 
577
        if(UART1_Request_Parameter && (UART1_tx_buffer.Locked == FALSE))
577
        if(UART1_Request_Parameter && (UART1_tx_buffer.Locked == FALSE))
578
        {
578
        {
579
                s16 ParamValue;
579
                s16 ParamValue;
-
 
580
                NCParams_GetValue(UART1_Request_ParameterId, &ParamValue);
-
 
581
                //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue);
580
                NCParams_GetValue(UART1_Request_ParameterId, &ParamValue);
582
                //UART1_PutString(text);
581
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'P', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request
583
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'P', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request
582
                UART1_Request_Parameter = FALSE;
584
                UART1_Request_Parameter = FALSE;
583
        }
585
        }
584
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))
586
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))