From 151b754d90fc505cc4588a5a47a65eacd44db79f Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sat, 21 Aug 2021 15:17:51 +1000 Subject: [PATCH] Remove setting fields set by default() --- rp2040-hal/src/gpio/reg.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rp2040-hal/src/gpio/reg.rs b/rp2040-hal/src/gpio/reg.rs index 060523c..cff68f3 100644 --- a/rp2040-hal/src/gpio/reg.rs +++ b/rp2040-hal/src/gpio/reg.rs @@ -38,11 +38,9 @@ impl From for ModeFields { Floating => (), PullDown => { fields.pde = true; - fields.pue = false; } PullUp => { fields.pue = true; - fields.pde = false; } } } @@ -56,11 +54,9 @@ impl From for ModeFields { Floating => (), PullDown => { fields.pde = true; - fields.pue = false; } PullUp => { fields.pue = true; - fields.pde = false; } } } @@ -94,7 +90,6 @@ impl From for ModeFields { fields.inen = true; if func == I2C { fields.pue = true; - fields.pde = false; } } };