Skip to content

Commit

Permalink
Fix regression in set_freq() that wiped out proper r_div setting
Browse files Browse the repository at this point in the history
  • Loading branch information
NT7S committed Mar 24, 2017
1 parent a5d75a0 commit f08d3e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,10 @@ This library does not currently support the spread spectrum function of the Si53

Changelog
---------
* v2.0.3

* Fix regression in _set_freq()_ that wiped out proper R div setting, causing errors in setting low frequency outputs

* v2.0.2

* Increase maximum frequency in _set_freq()_ to 225 MHz
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Etherkit Si5351
version=2.0.2
version=2.0.3
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
2 changes: 1 addition & 1 deletion src/si5351.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ uint8_t Si5351::set_freq(uint64_t freq, enum si5351_clock clk)
}
else
{
//uint64_t temp_freq = freq;
clk_freq[(uint8_t)clk] = freq;

// Enable the output
Expand All @@ -302,7 +303,6 @@ uint8_t Si5351::set_freq(uint64_t freq, enum si5351_clock clk)

// Set multisynth registers
set_ms(clk, ms_reg, int_mode, r_div, div_by_4);
ms_div(clk, 0, 0);

// Reset the PLL
pll_reset(pll_assignment[clk]);
Expand Down

0 comments on commit f08d3e1

Please sign in to comment.