From 1fa0828d22259a63e39ca2b935ddae232a717c15 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 29 Nov 2021 18:00:34 +0100 Subject: [PATCH] samples: stm32 power mngt enters low power Remove this line because the pm_device_busy_set function will prevent the system to enter low power. This sample application wants to. Signed-off-by: Francois Ramu --- samples/boards/stm32/power_mgmt/blinky/src/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/boards/stm32/power_mgmt/blinky/src/main.c b/samples/boards/stm32/power_mgmt/blinky/src/main.c index 30c73bfd7bd..5097627fe8c 100644 --- a/samples/boards/stm32/power_mgmt/blinky/src/main.c +++ b/samples/boards/stm32/power_mgmt/blinky/src/main.c @@ -23,9 +23,6 @@ void main(void) printk("Device ready\n"); - /* Don't let the system power off / low power this device */ - pm_device_busy_set(led.port); - while (true) { gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE); gpio_pin_set(led.port, led.pin, (int)led_is_on);