From f99ea4b5f662d976ea1eae7364cd4ca4d475f9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 18 Jun 2019 15:27:43 -0400 Subject: [PATCH] [ion] Fix bug in Power: after waking up from standby, call Reset::coreWhilePlugged instead of Reset::core (the device might be plugged at this point and we don't want to jump to ST bootloader when waking up from standby on N0100) --- ion/src/device/shared/drivers/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ion/src/device/shared/drivers/power.cpp b/ion/src/device/shared/drivers/power.cpp index 58bb08da4..e72a96e13 100644 --- a/ion/src/device/shared/drivers/power.cpp +++ b/ion/src/device/shared/drivers/power.cpp @@ -122,7 +122,7 @@ void __attribute__((noinline)) internalFlashStandby() { Device::ExternalFlash::shutdown(); Device::Board::shutdownClocks(); Device::Power::enterLowPowerMode(); - Device::Reset::core(); + Device::Reset::coreWhilePlugged(); } void configWakeUp() {