Skip to content

Commit cad91e6

Browse files
authored
Merge pull request #49 from etherkit/v2.0.6
Call set_pll() in set_correction() to ensure new correction is applied
2 parents bd4db48 + 45b8305 commit cad91e6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,13 @@ This library does not currently support the spread spectrum function of the Si53
666666
Changelog
667667
---------
668668

669+
* v2.0.6
670+
671+
* Call _set_pll()_ in _set_correction()_ to ensure that the new correction factor is applied
672+
669673
* v2.0.5
670674

671-
* Remove PLL reset from set_freq() when not necessary
675+
* Remove PLL reset from _set_freq()_ when not necessary
672676

673677
* v2.0.4
674678

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Etherkit Si5351
2-
version=2.0.5
2+
version=2.0.6
33
author=Jason Milldrum <[email protected]>
44
maintainer=Jason Milldrum <[email protected]>
55
sentence=A full-featured library for the Si5351 series of clock generator ICs from Silicon Labs

src/si5351.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,10 @@ void Si5351::update_status(void)
768768
void Si5351::set_correction(int32_t corr)
769769
{
770770
ref_correction = corr;
771+
772+
// Recalculate and set PLL freqs based on correction value
773+
set_pll(plla_freq, SI5351_PLLA);
774+
set_pll(pllb_freq, SI5351_PLLB);
771775
}
772776

773777
/*

0 commit comments

Comments
 (0)