Fix typo on post_div check

Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
Nic0w 2021-04-25 19:48:09 +02:00
parent 20c35d5e14
commit 5726bef879

View file

@ -160,7 +160,7 @@ impl<D: PhaseLockedLoopDevice> PhaseLockedLoop<Disabled, D> {
return Err(Error::VCOFreqOutOfRange) 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) return Err(Error::PostDivOutOfRage)
} }