Kaspars D
/
CAN-node-loop
Testing CAN network with two nodes in loopback
Revision 1:f3252017074f, committed 2013-01-07
- Comitter:
- kaspars
- Date:
- Mon Jan 07 20:01:42 2013 +0000
- Parent:
- 0:7db10104e3a4
- Commit message:
- Add propper line breaks
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7db10104e3a4 -r f3252017074f main.cpp --- a/main.cpp Mon Jan 07 20:01:01 2013 +0000 +++ b/main.cpp Mon Jan 07 20:01:42 2013 +0000 @@ -10,7 +10,7 @@ void send() { if(can1.write(CANMessage(1337, &counter, 1))) { counter++; - printf("Message sent: %d\n", counter); + printf("Message sent: %d\r\n", counter); } printf("CAN1 rderror: %d, tderror: %d\r\n", can1.rderror(), can1.tderror() ); @@ -24,7 +24,7 @@ CANMessage msg; while(1) { if(can2.read(msg)) { - printf("Message received: %d\n", msg.data[0]); + printf("Message received: %d\r\n", msg.data[0]); led2 = !led2; } wait(0.2);