From 20363a7e259e042e4dfcb4a2d6045d5da9deaa7f Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Tue, 29 Dec 2020 18:12:38 +0200 Subject: [PATCH] Fix wasteful empty loop Thanks, clippy! --- nucleus/src/platform/rpi3/power.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucleus/src/platform/rpi3/power.rs b/nucleus/src/platform/rpi3/power.rs index 00fb25a..efad91d 100644 --- a/nucleus/src/platform/rpi3/power.rs +++ b/nucleus/src/platform/rpi3/power.rs @@ -122,6 +122,6 @@ impl Power { val |= PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET; self.PM_RSTC.set(val); - loop {} + crate::endless_sleep() } }