Skip to content

Commit 691d709

Browse files
youvedeep-singhAnas Nashif
authored andcommitted
samples: nrf52: power_mgr: Increase idleness for main thread
Increase sleep time for main thread (1 sec to 1 minute) to keep SOC in Low Power State for longer time. Currently nrf SOC is entering into low power state and exiting immedately after 1 sec. With this change SOC will wake stay in Low Power State till GPIO is pressed or sleep time expired (whichever is earlier). Signed-off-by: Youvedeep Singh <[email protected]>
1 parent 16ef09e commit 691d709

File tree

1 file changed

+1
-1
lines changed
  • samples/boards/nrf52/power_mgr/src

1 file changed

+1
-1
lines changed

samples/boards/nrf52/power_mgr/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <device.h>
1414
#include <gpio.h>
1515

16-
#define SECONDS_TO_SLEEP 1
16+
#define SECONDS_TO_SLEEP 60
1717

1818
/* In Tickless Kernel mode, time is passed in milliseconds instead of ticks */
1919
#ifdef CONFIG_TICKLESS_KERNEL

0 commit comments

Comments
 (0)