mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-14 10:33:49 +00:00
removed unecessary lines
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user