94,7 → 94,7 |
u8 UART1_Request_Data3D = FALSE; |
u8 UART1_Request_Echo = FALSE; |
u8 UART1_Request_ParameterId = 0; |
u8 UART1_Request_Parameter = TRUE; |
u8 UART1_Request_Parameter = FALSE; |
u8 UART1_DisplayLine = 0; |
u8 UART1_ConfirmFrame = 0; |
|
578,6 → 578,8 |
{ |
s16 ParamValue; |
NCParams_GetValue(UART1_Request_ParameterId, &ParamValue); |
//sprintf(text, "\r\nId=%d, value = %d\r\n", UART1_Request_ParameterId, ParamValue); |
//UART1_PutString(text); |
MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'P', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request |
UART1_Request_Parameter = FALSE; |
} |