Fix setting pull direction in pinConfig (#189)

wch-ch32v003
Matthias 4 months ago committed by GitHub
parent ed0e5fe9f1
commit 095630e1d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -522,7 +522,7 @@ pub const GlobalConfiguration = struct {
if (comptime pin_config.get_direction() != .in) if (comptime pin_config.get_direction() != .in)
@compileError("Only input pins can have pull up/down enabled"); @compileError("Only input pins can have pull up/down enabled");
gpio.set_pull(gpio_num, pull); gpio.num(gpio_num).set_pull(pull);
}; };
} }

Loading…
Cancel
Save