From 9dc1f2d5f87555b8e38ac261ea4b5d25b5e73071 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 1 Jul 2015 08:00:50 +0200 Subject: [PATCH] [Taranis X9E] Problem when pressing long the PWR button on power off, I revert Mike's change for now --- radio/src/targets/taranis/pwr_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/targets/taranis/pwr_driver.c b/radio/src/targets/taranis/pwr_driver.c index 6fd719bce..c0abac8df 100644 --- a/radio/src/targets/taranis/pwr_driver.c +++ b/radio/src/targets/taranis/pwr_driver.c @@ -88,6 +88,8 @@ void pwrOff() // key is held pressed by the user while (1) { wdt_reset(); +#if 0 + // It doesn't work correctly, if we press long on the pwr button, the radio restarts when the button is released PWR->CR |= PWR_CR_CWUF; /* Select STANDBY mode */ PWR->CR |= PWR_CR_PDDS; @@ -95,6 +97,7 @@ void pwrOff() SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk; /* Request Wait For Event */ __WFE(); +#endif } #endif }