diff --git a/extras/acan2517FD.pdf b/extras/acan2517FD.pdf index d5c2205..2aae21d 100644 Binary files a/extras/acan2517FD.pdf and b/extras/acan2517FD.pdf differ diff --git a/library.properties b/library.properties index 2e5f305..9a67766 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ACAN2517FD -version=2.1.2 +version=2.1.3 author=Pierre Molinaro maintainer=Pierre Molinaro sentence=Driver for MCP2517FD and MCP2518FD CAN Controller (CAN FD mode) diff --git a/src/ACAN2517FD.cpp b/src/ACAN2517FD.cpp index 2d3449b..0a0a150 100644 --- a/src/ACAN2517FD.cpp +++ b/src/ACAN2517FD.cpp @@ -1167,8 +1167,8 @@ uint32_t ACAN2517FD::errorCounters (void) { //---------------------------------------------------------------------------------------------------------------------- -uint32_t ACAN2517FD::diagInfos(void) { - return readRegister32(BDIAG1_REGISTER); +uint32_t ACAN2517FD::diagInfos (void) { // thanks to Flole998 + return readRegister32 (BDIAG1_REGISTER) ; } //---------------------------------------------------------------------------------------------------------------------- diff --git a/src/ACAN2517FD.h b/src/ACAN2517FD.h index d20fbb8..7a1a24f 100644 --- a/src/ACAN2517FD.h +++ b/src/ACAN2517FD.h @@ -86,9 +86,9 @@ class ACAN2517FD { //······················································································································ public: uint32_t errorCounters (void) ; - + //······················································································································ -// Get diagnostic information +// Get diagnostic information (thanks to Flole998) //······················································································································ public: uint32_t diagInfos (void) ;