1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

cpu/lpc2387: PM_NUM_MODES must only count non-idle modes

lpc23xx has 3 sleep modes and one idle mode.
`PM_NUM_MODES` must only count the idle modes.

In practise, this makes no difference since `mode 3` (IDLE) is
the `default` case in `pm_set()` anyway.
This commit is contained in:
Benjamin Valentin 2020-04-26 19:45:43 +02:00
parent bcf4cc8083
commit c21b5d6f55

View File

@ -36,7 +36,7 @@ extern "C" {
* @name Power mode configuration
* @{
*/
#define PM_NUM_MODES (4)
#define PM_NUM_MODES (3)
/** @} */
/**