mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Fix typo on post_div check
Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
parent
20c35d5e14
commit
5726bef879
|
@ -160,7 +160,7 @@ impl<D: PhaseLockedLoopDevice> PhaseLockedLoop<Disabled, D> {
|
|||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue