Rev 296 | Rev 299 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 296 | Rev 298 | ||
---|---|---|---|
Line 630... | Line 630... | ||
630 | UART1_Transmit(); // output pending bytes in tx buffer |
630 | UART1_Transmit(); // output pending bytes in tx buffer |
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; |
|
635 | s16 ParamValue; |
636 | ParamValue = NCParams_GetValue_NoCheck(UART1_Request_ParameterId); |
636 | NCParams_GetValue(UART1_Request_ParameterId, &ParamValue); |
637 | //NCParams_GetValue(UART1_Request_ParameterId, &ParamValue); |
637 | //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue); |
638 | //sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue); |
638 | //UART1_PutString(text); |
639 | //UART1_PutString(text); |
639 | MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'J', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request |
640 | MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'J', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request |
640 | UART1_Request_Parameter = FALSE; |
641 | UART1_Request_Parameter = FALSE; |