Skip to content

Fix count constants which were off by one #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 23, 2020
Merged

Fix count constants which were off by one #14

merged 1 commit into from
Nov 23, 2020

Conversation

SaintGimp
Copy link

The count constants were all off by one, ranging from 0x1 to 0x8, when the datasheet specifies that the values range from 0x0 to 0x7. The result with the old code was that specifying COUNT_64 would cause the INA260 to do 128 samples, for example.

@ladyada ladyada requested a review from siddacious November 1, 2020 18:01
@siddacious siddacious merged commit e56c69e into adafruit:master Nov 23, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Nov 25, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_INA260 to 1.2.4 from 1.2.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_INA260#14 from SaintGimp/fix-count-constants

Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 0.13.1 from 0.13.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#42 from FoamyGuy/magtag_example

Updating https://github.com/adafruit/Adafruit_CircuitPython_MagTag to 1.1.1 from 1.0.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#25 from makermelissa/main
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#26 from adafruit/rename-example
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#24 from makermelissa/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar to 1.3.5 from 1.3.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_ProgressBar#19 from FoamyGuy/magtag_example
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.

3 participants