From 4e2b668e896b09d98c2094db8a7a891581b715db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 8 Apr 2019 14:04:55 +0200 Subject: [PATCH] [ion] WakeUp: wake up on rising AND falling edge of VbusPin --- ion/src/device/shared/drivers/wakeup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ion/src/device/shared/drivers/wakeup.cpp b/ion/src/device/shared/drivers/wakeup.cpp index c22804ae3..536d19276 100644 --- a/ion/src/device/shared/drivers/wakeup.cpp +++ b/ion/src/device/shared/drivers/wakeup.cpp @@ -36,9 +36,9 @@ void onUSBPlugging() { SYSCFG.EXTICR3()->setEXTI(USB::Config::VbusPin.pin(), USB::Config::VbusPin.group()); EXTI.EMR()->set(USB::Config::VbusPin.pin(), true); -#if EPSILON_LED_WHILE_CHARGING +//#if EPSILON_LED_WHILE_CHARGING EXTI.FTSR()->set(USB::Config::VbusPin.pin(), true); -#endif +//#endif EXTI.RTSR()->set(USB::Config::VbusPin.pin(), true); }