Rev 298 | Rev 300 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 298 | Rev 299 | ||
---|---|---|---|
Line 631... | Line 631... | ||
631 | if((UART1_tx_buffer.Locked == TRUE)) return; |
631 | if((UART1_tx_buffer.Locked == TRUE)) return; |
Line 632... | Line 632... | ||
632 | 632 | ||
633 | if(UART1_Request_Parameter && (UART1_tx_buffer.Locked == FALSE)) |
633 | if(UART1_Request_Parameter && (UART1_tx_buffer.Locked == FALSE)) |
634 | { |
634 | { |
635 | s16 ParamValue; |
- | |
636 | ParamValue = NCParams_GetValue_NoCheck(UART1_Request_ParameterId); |
635 | s16 ParamValue; |
637 | //NCParams_GetValue(UART1_Request_ParameterId, &ParamValue); |
- | |
638 | //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue); |
- | |
639 | //UART1_PutString(text); |
636 | NCParams_GetValue(UART1_Request_ParameterId, &ParamValue); |
640 | MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'J', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request |
637 | MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'J', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request |
641 | UART1_Request_Parameter = FALSE; |
638 | UART1_Request_Parameter = FALSE; |
642 | } |
639 | } |
643 | else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE)) |
640 | else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE)) |