Rev 146 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 146 | Rev 148 | ||
|---|---|---|---|
| Line 61... | Line 61... | ||
| 61 | timeStamp = Timebase_CurrentTime(); |
61 | timeStamp = Timebase_CurrentTime(); |
| 62 | } |
62 | } |
| 63 | 63 | ||
| 64 | /* check if any messages have been received */ |
64 | /* check if any messages have been received */ |
| 65 | while (Can_Receive(&rxMsg) == CAN_OK) { |
65 | while (Can_Receive(&rxMsg) == CAN_OK) { |
| 66 | /* |
66 | /* echo back with increased Id */ |
| - | 67 | rxMsg.Id++; |
|
| 67 | while (Can_Send(&rxMsg) != CAN_OK); |
68 | while (Can_Send(&rxMsg) != CAN_OK); |
| 68 | } |
69 | } |
| 69 | } |
70 | } |
| 70 | 71 | ||
| 71 | return 0; |
72 | return 0; |