Skip to content

Commit

Permalink
Fix setting pull direction in pinConfig (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasPortzel authored May 14, 2024
1 parent ed0e5fe commit 095630e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsp/raspberrypi/rp2040/src/hal/pins.zig
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ pub const GlobalConfiguration = struct {
if (comptime pin_config.get_direction() != .in)
@compileError("Only input pins can have pull up/down enabled");

gpio.set_pull(gpio_num, pull);
gpio.num(gpio_num).set_pull(pull);
};
}

Expand Down

0 comments on commit 095630e

Please sign in to comment.