cpu/saml21: pm: don't check individual part numbers

Just check if the define is availiable instead.
This commit is contained in:
Benjamin Valentin 2020-02-12 11:44:20 +01:00
parent 3ac25c3ac9
commit 6f2cdb95da

View File

@ -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;