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 committed by GitHub
parent c3bc1bbaf8
commit 2462c430b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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