From d67a1d00a7d948bf5960b3a6b9f2950e8ba94a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 19 Jun 2019 08:53:17 -0400 Subject: [PATCH] [ion] Power: add a comment to explain why standby use stopConfiguration on N0100 --- ion/src/device/n0100/drivers/power.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ion/src/device/n0100/drivers/power.cpp b/ion/src/device/n0100/drivers/power.cpp index a4ae9fbe8..71da7453d 100644 --- a/ion/src/device/n0100/drivers/power.cpp +++ b/ion/src/device/n0100/drivers/power.cpp @@ -7,6 +7,10 @@ namespace Power { void standby() { Device::Power::waitUntilOnOffKeyReleased(); + /* N0100 cannot use standby mode because the power key is not correctly wired + * to a wake up pin in order to trigger a wake up event. If the device is in + * standby, we won't be able to wake it up. Instead, we use the stop mode (as + * it is the low power mode consuming less after standby mode). */ Device::Power::stopConfiguration(); Device::Board::shutdownPeripherals(); Device::WakeUp::onOnOffKeyDown();