Skip to content

Move asserion of length of data packet #15

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
Jun 24, 2025
Merged

Conversation

hrfarmer
Copy link
Contributor

Closes #14

Follows what the comment from @jerryneedell said, moves the assertion call to just before the self.fill_fifo() call, and asserts payload instead of data

Copy link
Contributor

@nateinaction nateinaction left a comment

Choose a reason for hiding this comment

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

Wtg! 🚀

@jerryneedell
Copy link
Collaborator

Looks good to me - Thank you! I tried this PR on a Feather_RP2040_RFM95 and on a Raspberry Pi 5 with some existing code and it still works normally. I did not explicitly test the assert.

@jerryneedell jerryneedell merged commit e242320 into adafruit:main Jun 24, 2025
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 8, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_EPD to 2.13.6 from 2.13.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_EPD#91 from adafruit/ssd1680_tricolor

Updating https://github.com/adafruit/Adafruit_CircuitPython_RFM to 1.0.7 from 1.0.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_RFM#15 from hrfarmer/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1305 to 1.4.3 from 1.4.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1305#18 from mikeysklar/128x64-spi-col-offset

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1680 to 2.0.4 from 2.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#35 from FoamyGuy/odb_api_update
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1680#33 from adafruit/tricolor_2point9

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_AS5600
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.

max_packet_length check doesn't account for 4 byte radiohead prepend
3 participants