Skip to content

Commit

Permalink
Merge pull request tock#4262 from alevy/nordic/uicr_startup_fix
Browse files Browse the repository at this point in the history
nordic: components: startup: fix uicr pin check
  • Loading branch information
bradjc authored Dec 4, 2024
2 parents 2cceb10 + c735b31 commit 1c5ea3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/nordic/nrf52_components/src/startup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ impl Component for NrfStartupComponent<'_> {
// Configure reset pins
if uicr
.get_psel0_reset_pin()
.is_some_and(|pin| pin != self.button_rst_pin)
.is_none_or(|pin| pin != self.button_rst_pin)
{
uicr.set_psel0_reset_pin(self.button_rst_pin);
while !self.nvmc.is_ready() {}
needs_soft_reset = true;
}
if uicr
.get_psel1_reset_pin()
.is_some_and(|pin| pin != self.button_rst_pin)
.is_none_or(|pin| pin != self.button_rst_pin)
{
uicr.set_psel1_reset_pin(self.button_rst_pin);
while !self.nvmc.is_ready() {}
Expand Down

0 comments on commit 1c5ea3e

Please sign in to comment.