Subversion Repositories NaviCtrl

Rev

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

Rev 156 Rev 157
Line 439... Line 439...
439
                                {
439
                                {
440
                                        case 0: // get
440
                                        case 0: // get
441
                                        break;
441
                                        break;
Line 442... Line 442...
442
                                       
442
                                       
443
                                        case 1: // set
443
                                        case 1: // set
444
                                        NCParams_SetValue(SerialMsg.pData[1], *(s16*)(&SerialMsg.pData[2]));
444
                                        NCParams_SetValue(SerialMsg.pData[1], (s16*)(&SerialMsg.pData[2]));
Line 445... Line 445...
445
                                        break;
445
                                        break;
446
 
446
 
447
                                        default:
447
                                        default:
Line 575... Line 575...
575
        if((UART1_tx_buffer.Locked == TRUE)) return;
575
        if((UART1_tx_buffer.Locked == TRUE)) return;
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
                ParamValue = NCParams_GetValue(UART1_Request_ParameterId);
580
                NCParams_GetValue(UART1_Request_ParameterId, &ParamValue);
581
                MKProtocol_CreateSerialFrame(&UART1_tx_buffer, 'P', NC_ADDRESS, 2, &UART1_Request_ParameterId, sizeof(UART1_Request_ParameterId), &ParamValue, sizeof(ParamValue)); // answer the param request
581
                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;
582
                UART1_Request_Parameter = FALSE;
583
        }
583
        }
584
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))
584
        else if(UART1_Request_Echo && (UART1_tx_buffer.Locked == FALSE))