From da85094b65eb8e86c2eb52435fd0ef485e31a710 Mon Sep 17 00:00:00 2001
From: Juan Carrano <j.carrano@fu-berlin.de>
Date: Wed, 30 May 2018 12:23:43 +0200
Subject: [PATCH] cpu/saml21: Fix possibly uninitialized variable in pm.c.

---
 cpu/saml21/periph/pm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpu/saml21/periph/pm.c b/cpu/saml21/periph/pm.c
index 9bc2d8a871..7806ab6ef9 100644
--- a/cpu/saml21/periph/pm.c
+++ b/cpu/saml21/periph/pm.c
@@ -38,6 +38,7 @@ void pm_set(unsigned mode)
                 DEBUG("pm_set(): setting STANDBY mode.\n");
                 _mode = PM_SLEEPCFG_SLEEPMODE_STANDBY;
                 break;
+            default: /* Falls through */
             case 2:
                 DEBUG("pm_set(): setting IDLE mode.\n");
                 _mode = PM_SLEEPCFG_SLEEPMODE_IDLE2;
-- 
GitLab