| 493 | |
| 494 | |
| 495 | INT8U Can232::sendMsgBuf(INT32U id, INT8U ext, INT8U rtr, INT8U len, INT8U *buf) { |
| 496 | #ifndef _MCP_FAKE_MODE_ |
| 497 | if (!lw232CAN) { |
| 498 | return CAN_FAILTX; |
| 499 | } |
| 500 | return lw232CAN->sendMsgBuf(id, ext, rtr, len, buf); |
| 501 | #else |
| 502 | Serial.print("<sending:"); |
| 503 | Serial.print(id, HEX); |
| 504 | Serial.print(','); |
| 505 | if (ext) Serial.print('+'); |
| 506 | else Serial.print('-'); |
| 507 | if (rtr) Serial.print('+'); |
| 508 | else Serial.print('-'); |
| 509 | Serial.print(','); |
| 510 | Serial.print(len, DEC); |
| 511 | Serial.print(','); |
| 512 | int i; |
| 513 | for (i = 0; i < len; i++) printFullByte(buf[i]); |
| 514 | return CAN_OK; |
| 515 | #endif |
| 516 | } |
| 517 | |
| 518 | |
| 519 |
nothing calls this directly
no outgoing calls
no test coverage detected