Skip to content

Commit 97b7039

Browse files
nordic-piksPerMac
authored andcommitted
tests: benchmarks: current_consumption: gpio_idle: fix gpio wakeup at DLT
Specify wakeup bit explicit. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 9f562fb commit 97b7039

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/benchmarks/current_consumption/gpio_idle/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ CONFIG_CONSOLE=n
33
CONFIG_UART_CONSOLE=n
44
CONFIG_SERIAL=n
55
CONFIG_POWEROFF=y
6+
CONFIG_PRINTK=y

tests/benchmarks/current_consumption/gpio_idle/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(void)
3939
printk("Could not configure sw GPIO interrupt (%d)\n", ret);
4040
return 0;
4141
}
42-
gpio_init_callback(&gpio_cb, my_gpio_callback, 0xFFFF);
42+
gpio_init_callback(&gpio_cb, my_gpio_callback, BIT(sw.pin));
4343
gpio_add_callback(sw.port, &gpio_cb);
4444

4545
while (1) {

0 commit comments

Comments
 (0)