Skip to content

Conversation

@phrogger
Copy link
Contributor

Addresses open issues #4 and #6 for "adafruit_si5351.py"

line 214: changed
assert 0 < denominator < 0xFFFFF
to
assert 0 < denominator <= 0xFFFFF
because 0xFFFFF = 1048575 is a valid pll fractional denominator
per AN619, page 3.
Addresses issue #6 opened July 14 by phrogger

line 298: changed
assert 0 <= divider <= 6
to
assert 0 <= divider <= 7
because R_DIV_128 corresponding to index 7 is valid.
Addresses issue #4 opened on Mar 24 by evbaarle

line 350: changed
assert 0 < denominator < 0xFFFFF
to
assert 0 < denominator <= 0xFFFFF
because 0xFFFFF = 1048575 is a valid output fractional denominator
per AN619, page 6.
Same bug, different location, as issue #6 opened July 14 by phrogger

The changes were tested by running CP 4.0.2 on a Feather M4 Express with the
changes in a file "adafruit_si5351.py", and verified to work as expected.

The changes were not built into an ".mpy" file locally and verified.
Considering the changes, the risk is low.
If this is a necessary part of testing before a pull-request is accepted,
reject this pull request, and I will figure out how to do that.

--- Graham / phrogger

@ladyada ladyada merged commit 4ac788c into adafruit:master Jul 15, 2019
@ladyada
Copy link
Member

ladyada commented Jul 15, 2019

your testing sounds good, will merge!

@ladyada
Copy link
Member

ladyada commented Jul 15, 2019

@siddacious plz bump a release

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants