Skip to content

Commit 9a7123b

Browse files
authored
Merge pull request #19 from thefloe1/master
Fix multisynth divider range
2 parents c97e987 + 0ac8d2c commit 9a7123b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_si5351.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def configure_integer(self, pll, divider):
306306
divider. This is the most accurate way to set the clock output
307307
frequency but supports less of a range of values.
308308
"""
309-
assert 3 < divider < 901
309+
assert 3 < divider < 2049
310310
divider = int(divider)
311311
# Make sure the PLL is configured (has a frequency set).
312312
assert pll.frequency is not None
@@ -331,7 +331,7 @@ def configure_fractional(self, pll, divider, numerator, denominator):
331331
fractional divider with numerator/denominator. Again this is less
332332
accurate but has a wider range of output frequencies.
333333
"""
334-
assert 3 < divider < 901
334+
assert 3 < divider < 2049
335335
assert 0 < denominator <= 0xFFFFF # Prevent divide by zero.
336336
assert 0 <= numerator < 0xFFFFF
337337
divider = int(divider)

0 commit comments

Comments
 (0)