From 5726bef879d776e84c7bf070a2e602215e22c8fb Mon Sep 17 00:00:00 2001 From: Nic0w Date: Sun, 25 Apr 2021 19:48:09 +0200 Subject: [PATCH] Fix typo on post_div check Co-authored-by: tdittr --- rp2040-hal/src/pll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/src/pll.rs b/rp2040-hal/src/pll.rs index 05940c3..5626868 100644 --- a/rp2040-hal/src/pll.rs +++ b/rp2040-hal/src/pll.rs @@ -160,7 +160,7 @@ impl PhaseLockedLoop { return Err(Error::VCOFreqOutOfRange) } - if !POSTDIV_RANGE.contains(&config.post_div2) || !POSTDIV_RANGE.contains(&config.post_div2) { + if !POSTDIV_RANGE.contains(&config.post_div1) || !POSTDIV_RANGE.contains(&config.post_div2) { return Err(Error::PostDivOutOfRage) }