Skip to content

Fix generic Linux SPI write_readinto slice - #1116

Merged
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:fix-generic-linux-spi-write-readinto-slice
Jun 29, 2026
Merged

Fix generic Linux SPI write_readinto slice#1116
makermelissa merged 1 commit into
adafruit:mainfrom
makermelissa:fix-generic-linux-spi-write-readinto-slice

Conversation

@makermelissa

@makermelissa makermelissa commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Honor exclusive out_end in generic Linux SPI write_readinto()
  • Clarify the docstring to describe full-duplex SPI behavior
  • Add a focused unit test with a fake PureIO SPI backend

Refs #492.

Testing

  • PYTHONPATH=src python -c 'import tests.test_generic_linux_spi as t; t.test_write_readinto_uses_exclusive_out_end(); print("ok")'
  • python -m py_compile src/adafruit_blinka/microcontroller/generic_linux/spi.py tests/test_generic_linux_spi.py

Full disclosure, this was written by codex.

@makermelissa
makermelissa force-pushed the fix-generic-linux-spi-write-readinto-slice branch from a72e7b3 to 33f4566 Compare June 29, 2026 21:23
@makermelissa
makermelissa merged commit df4f518 into adafruit:main Jun 29, 2026
1 check passed
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.

1 participant