Skip to content

fix crc calc for non-express boards #10

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
Mar 11, 2021
Merged

Conversation

noahcoad
Copy link
Contributor

Bug fix for non-Express boards. Library works on Express CircuitPython boards where an integer doesn't have an upper bound, but on non-express boards, like the QT Py M0, int has an upper bound that is getting overflowed and throwing an exception. This fix drops bits above a byte on each CRC calc change to prevent the overflow (which was probably happening in C anyway).

Fix to issue brought up on this forum topic: QTPyM0: "small int overflow" on CRC calc w lc709203

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 06ec55e into adafruit:master Mar 11, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 17, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_FRAM to 1.3.8 from 1.3.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_FRAM#25 from caternuson/iss24

Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.8.1 from 3.8.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#60 from lesamouraipourpre/length-data-type-check
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#61 from lesamouraipourpre/docs2
  > Revert "[WILL BE REVERSED] Making change to test adabot release check"
  > [WILL BE REVERSED] Making change to test adabot release check

Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.0.3 from 2.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#10 from noahcoad/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A to 0.4.0 from 0.3.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_TCA9548A#27 from caternuson/iss26_scan

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.3.0 from 1.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#17 from FoamyGuy/iconwidget_ondisk

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 5.0.5 from 5.0.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#74 from KTibow/patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#72 from FoamyGuy/ignoreimport

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.2.3 from 0.2.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#14 from adafruit/jepler-rotary-example

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.4.1 from 1.4.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#22 from makermelissa/main
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