Skip to content

Commit

Permalink
Merge pull request #49 from etherkit/v2.0.6
Browse files Browse the repository at this point in the history
Call set_pll() in set_correction() to ensure new correction is applied
  • Loading branch information
NT7S committed Jul 10, 2017
2 parents bd4db48 + 45b8305 commit cad91e6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -666,9 +666,13 @@ This library does not currently support the spread spectrum function of the Si53
Changelog
---------

* v2.0.6

* Call _set_pll()_ in _set_correction()_ to ensure that the new correction factor is applied

* v2.0.5

* Remove PLL reset from set_freq() when not necessary
* Remove PLL reset from _set_freq()_ when not necessary

* v2.0.4

Expand Down
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=Etherkit Si5351
version=2.0.5
version=2.0.6
author=Jason Milldrum <milldrum@gmail.com>
maintainer=Jason Milldrum <milldrum@gmail.com>
sentence=A full-featured library for the Si5351 series of clock generator ICs from Silicon Labs
Expand Down
4 changes: 4 additions & 0 deletions src/si5351.cpp
Expand Up @@ -768,6 +768,10 @@ void Si5351::update_status(void)
void Si5351::set_correction(int32_t corr)
{
ref_correction = corr;

// Recalculate and set PLL freqs based on correction value
set_pll(plla_freq, SI5351_PLLA);
set_pll(pllb_freq, SI5351_PLLB);
}

/*
Expand Down

0 comments on commit cad91e6

Please sign in to comment.