From 6f2cdb95dab28f8cc232febe604bcf64e1b7b408 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 12 Feb 2020 11:44:20 +0100 Subject: [PATCH] cpu/saml21: pm: don't check individual part numbers Just check if the define is availiable instead. --- cpu/saml21/periph/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;