From bd05a73e38c9d7205c3f5c6d74291f96a229b7d2 Mon Sep 17 00:00:00 2001 From: Robert Quattlebaum Date: Mon, 4 Dec 2017 08:41:57 -0800 Subject: [PATCH] [nrf52480] Don't call PlatformDeinit() before NVIC_SystemReset() (#2385) Calling `PlatformDeinit()` before calling `NVIC_SystemReset()` reduces the reliability of `otPlatReset()` to always work properly, and doing so seems superfluous if you are just going to reset the chip anyway. This fixes issue #2383. --- examples/platforms/nrf52840/misc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/platforms/nrf52840/misc.c b/examples/platforms/nrf52840/misc.c index da3175fd8..90905d707 100644 --- a/examples/platforms/nrf52840/misc.c +++ b/examples/platforms/nrf52840/misc.c @@ -71,8 +71,6 @@ void otPlatReset(otInstance *aInstance) { (void)aInstance; - PlatformDeinit(); - NVIC_SystemReset(); }