Skip to content

Commit 76e770d

Browse files
ananglkartben
authored andcommitted
drivers: gpio_nrfx: Add missing break statements in gpio_pin_get_config
... so that the pull-up pin configuration can be correctly reported. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent dba2d7b commit 76e770d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpio_nrfx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,10 @@ static int gpio_nrfx_pin_get_config(const struct device *port, gpio_pin_t pin,
258258
switch (pull) {
259259
case NRF_GPIO_PIN_PULLUP:
260260
*flags |= GPIO_PULL_UP;
261+
break;
261262
case NRF_GPIO_PIN_PULLDOWN:
262263
*flags |= GPIO_PULL_DOWN;
264+
break;
263265
default:
264266
break;
265267
}

0 commit comments

Comments
 (0)