File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ void loop() {
3838 Serial.print (CAN.packetId (), HEX);
3939
4040 if (CAN.packetRtr ()) {
41- Serial.println (" and requested length " );
41+ Serial.print (" and requested length " );
4242 Serial.println (CAN.packetDlc ());
4343 } else {
44- Serial.println (" and length " );
44+ Serial.print (" and length " );
4545 Serial.println (packetSize);
4646
4747 // only print packet data for non-RTR packets
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ void onReceive(int packetSize) {
4141 Serial.print (CAN.packetId (), HEX);
4242
4343 if (CAN.packetRtr ()) {
44- Serial.println (" and requested length " );
44+ Serial.print (" and requested length " );
4545 Serial.println (CAN.packetDlc ());
4646 } else {
47- Serial.println (" and length " );
47+ Serial.print (" and length " );
4848 Serial.println (packetSize);
4949
5050 // only print packet data for non-RTR packets
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void loop() {
3636 // send extended packet: id is 29 bits, packet can contain up to 8 bytes of data
3737 Serial.print (" Sending extended packet ... " );
3838
39- CAN.beginPacket (0xabcdef );
39+ CAN.beginExtendedPacket (0xabcdef );
4040 CAN.write (' w' );
4141 CAN.write (' o' );
4242 CAN.write (' r' );
You can’t perform that action at this time.
0 commit comments