From 36776c7ba8582327e0262fdc1bba1fd98188c6fa Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Fri, 4 Jun 2021 14:20:24 +0200 Subject: [PATCH] rm superfluous exit() --- advanced/firmware/src/lib.rs | 7 ------- beginner/apps/src/lib.rs | 7 ------- 2 files changed, 14 deletions(-) diff --git a/advanced/firmware/src/lib.rs b/advanced/firmware/src/lib.rs index 7480423..3446a8d 100644 --- a/advanced/firmware/src/lib.rs +++ b/advanced/firmware/src/lib.rs @@ -8,10 +8,3 @@ use panic_probe as _; fn panic() -> ! { cortex_m::asm::udf() } - -/// Terminates the application and makes `probe-run` exit with exit-code = 0 -pub fn exit() -> ! { - loop { - cortex_m::asm::bkpt(); - } -} diff --git a/beginner/apps/src/lib.rs b/beginner/apps/src/lib.rs index 7480423..3446a8d 100644 --- a/beginner/apps/src/lib.rs +++ b/beginner/apps/src/lib.rs @@ -8,10 +8,3 @@ use panic_probe as _; fn panic() -> ! { cortex_m::asm::udf() } - -/// Terminates the application and makes `probe-run` exit with exit-code = 0 -pub fn exit() -> ! { - loop { - cortex_m::asm::bkpt(); - } -}