diff --git a/os/hal/include/can.h b/os/hal/include/can.h index c7bfd1ec6..b9442597c 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -69,7 +69,9 @@ /** * @brief Sleep mode related APIs inclusion switch. */ +#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__) #define CAN_USE_SLEEP_MODE TRUE +#endif /*===========================================================================*/ /* Derived constants and error checks. */ diff --git a/readme.txt b/readme.txt index 3cb510610..a39e77a4a 100644 --- a/readme.txt +++ b/readme.txt @@ -58,6 +58,9 @@ *** Releases *** ***************************************************************************** +*** 2.0.5 *** +- FIX: Fixed CAN_USE_SLEEP_MODE setting (bug 3064204). + *** 2.0.4 *** - FIX: Fixed potential issue with GCC reorganizing instructions around "asm volatile" statements (bug 3058731).