Skip to content

Commit 095630e

Browse files
Fix setting pull direction in pinConfig (#189)
1 parent ed0e5fe commit 095630e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bsp/raspberrypi/rp2040/src/hal/pins.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ pub const GlobalConfiguration = struct {
522522
if (comptime pin_config.get_direction() != .in)
523523
@compileError("Only input pins can have pull up/down enabled");
524524

525-
gpio.set_pull(gpio_num, pull);
525+
gpio.num(gpio_num).set_pull(pull);
526526
};
527527
}
528528

0 commit comments

Comments
 (0)