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) }