diff --git a/mcp_can.cpp b/mcp_can.cpp index 3aad156..fe57aeb 100644 --- a/mcp_can.cpp +++ b/mcp_can.cpp @@ -534,8 +534,8 @@ void MCP_CAN::mcp2515_write_canMsg(const byte buffer_sidh_addr, int rtrBit) byte mcp_addr; mcp_addr = buffer_sidh_addr; mcp2515_setRegisterS(mcp_addr+5, dta, dta_len); // write data bytes - Serial.print("RTR: "); - Serial.println(rtrBit); + // Serial.print("RTR: "); + // Serial.println(rtrBit); if(rtrBit == 1) // if RTR set bit in byte { dta_len |= MCP_RTR_MASK; diff --git a/mcp_can.h b/mcp_can.h index 19de0e2..2842e88 100644 --- a/mcp_can.h +++ b/mcp_can.h @@ -123,7 +123,7 @@ public: byte init_Mask(byte num, byte ext, unsigned long ulData); // init Masks byte init_Filt(byte num, byte ext, unsigned long ulData); // init filters byte sendMsgBuf(unsigned long id, byte ext, byte rtr, byte len, byte *buf); // send buf - // byte sendMsgBuf(unsigned long id, byte ext, byte len, byte *buf); // send buf + byte sendMsgBuf(unsigned long id, byte ext, byte len, byte *buf); // send buf byte readMsgBuf(byte *len, byte *buf); // read buf byte readMsgBufID(unsigned long *ID, byte *len, byte *buf); // read buf with object ID byte checkReceive(void); // if something received