Skip to content

Commit b71909d

Browse files
committed
samples: basic: blinky: s/gpio_is_ready_dt/gpio_get_dt
Use new API. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent f8ccd46 commit b71909d

File tree

1 file changed

+1
-1
lines changed
  • samples/basic/blinky/src

1 file changed

+1
-1
lines changed

samples/basic/blinky/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main(void)
2525
int ret;
2626
bool led_state = true;
2727

28-
if (!gpio_is_ready_dt(&led)) {
28+
if (gpio_get_dt(&led) < 0) {
2929
return 0;
3030
}
3131

0 commit comments

Comments
 (0)