diff --git a/cpu/saml21/periph/pm.c b/cpu/saml21/periph/pm.c index 7ad31c4289..af839e5bd9 100644 --- a/cpu/saml21/periph/pm.c +++ b/cpu/saml21/periph/pm.c @@ -41,7 +41,7 @@ void pm_set(unsigned mode) default: /* Falls through */ case 2: DEBUG_PUTS("pm_set(): setting IDLE mode."); -#if defined(CPU_MODEL_SAMR30G18A) || defined(CPU_MODEL_SAMR34J18B) +#if !defined(PM_SLEEPCFG_SLEEPMODE_IDLE2) _mode = PM_SLEEPCFG_SLEEPMODE_IDLE; #else _mode = PM_SLEEPCFG_SLEEPMODE_IDLE2;