Emandhal / MCP251XFD

MCP2517FD, MCP2518FD and MCP251863 driver
MIT License
28 stars 6 forks source link

CAN Listen Only Mode. #3

Closed mikucukyilmaz closed 2 years ago

mikucukyilmaz commented 2 years ago

We couldn't find any method to start the controller in Listen Only Mode. We added the method below and going to test it. We would like to ask if we missed that function.

inline eERRORRESULT MCP251XFD_StartCANListenOnly(MCP251XFD *pComp)
{
  return MCP251XFD_RequestOperationMode(pComp, MCP251XFD_LISTEN_ONLY_MODE, false);
}
Emandhal commented 2 years ago

Hi, This should work as expected.

mikucukyilmaz commented 2 years ago

Yep tested and it's working okay. Thanks.