Skip to content

Commit

Permalink
fixup! [sam] Do not reset peripheral mode in configure(InputMode)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand committed Feb 8, 2022
1 parent a8c27bb commit 72170ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modm/platform/gpio/sam/pin.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public:
configure(InputType type)
{
set(type == InputType::PullUp);
PinCfg::set(PORT_PINCFG_INEN | (type != InputType::Floating) << PORT_PINCFG_PULLEN_Pos, PORT_PINCFG_INEN | PORT_PINCFG_PULLEN);
PinCfg::set(PORT_PINCFG_INEN | (type != InputType::Floating) << PORT_PINCFG_PULLEN_Pos, PORT_PINCFG_PULLEN);
}

static void
Expand Down

0 comments on commit 72170ff

Please sign in to comment.