cpu/saml21: pm: don't check individual part numbers
Just check if the define is availiable instead.
This commit is contained in:
parent
3ac25c3ac9
commit
6f2cdb95da
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user