Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (pLibIf->Rx_FramePhase)
- {
- case 7:
- {
- pLibIf->Rx_FramePhase = 0;
- RXFrames[0].Valid = true;
- /// akcia
- break;
- }
- case 6:
- case 5:
- case 4:
- case 3:
- case 2:
- case 1: { RXFrames[0].Structure.RAW[pLibIf->Rx_FramePhase++] = InByte; break; }
- case 0:
- {
- if(InByte == 0x00) break; // zahod -> CMD nesmie byt 0
- RXFrames[0].Structure.Decoded.CMD = InByte;
- pLibIf->Rx_FramePhase ++;
- break;
- }
- default: pLibIf->Rx_FramePhase = 0; // Cancel
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement