Subversion Repositories NaviCtrl

Rev

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

Rev 136 Rev 153
Line 163... Line 163...
163
        // if data in the rxd buffer are not locked immediately return
163
        // if data in the rxd buffer are not locked immediately return
164
        if((USB_rx_buffer.Locked == FALSE) || (DebugUART != UART1) ) return;
164
        if((USB_rx_buffer.Locked == FALSE) || (DebugUART != UART1) ) return;
Line 165... Line 165...
165
 
165
 
Line 166... Line 166...
166
        MKProtocol_DecodeSerialFrame(&USB_rx_buffer, &SerialMsg); // decode serial frame in rxd buffer
166
        MKProtocol_DecodeSerialFrame(&USB_rx_buffer, &SerialMsg); // decode serial frame in rxd buffer
167
 
167
 
168
    if(SerialMsg.CmdID != 'z') SerialLinkOkay = 250;      // reset SerialTimeout, but not in case of the "ping"
168
    if(*SerialMsg.pCmdID != 'z') SerialLinkOkay = 250;    // reset SerialTimeout, but not in case of the "ping"
169
        switch(SerialMsg.Address) // check for Slave Address
169
        switch(*SerialMsg.pAddress) // check for Slave Address
170
        {
170
        {
171
                case NC_ADDRESS:  // own Slave Address
171
                case NC_ADDRESS:  // own Slave Address
172
                switch(SerialMsg.CmdID)
172
                switch(*SerialMsg.pCmdID)
173
                {
173
                {
174
                        case 'e': // request for the text of the error status
174
                        case 'e': // request for the text of the error status
Line 235... Line 235...
235
                } // case NC_ADDRESS
235
                } // case NC_ADDRESS
236
                // "break;" is missing here to fall thru to the common commands
236
                // "break;" is missing here to fall thru to the common commands
Line 237... Line 237...
237
 
237
 
Line 238... Line 238...
238
                default:  // and any other Slave Address
238
                default:  // and any other Slave Address
239
 
239
 
240
                switch(SerialMsg.CmdID) // check CmdID
240
                switch(*SerialMsg.pCmdID) // check CmdID
241
                {
241
                {
242
                        case 'a':// request for the labels of the analog debug outputs
242
                        case 'a':// request for the labels of the analog debug outputs
243
                                USB_Request_DebugLabel = SerialMsg.pData[0];
243
                                USB_Request_DebugLabel = SerialMsg.pData[0];