Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

SPI Methods: Prevention of hardware limit errors and data corruption #98

Merged
merged 2 commits into from
Mar 30, 2019

Conversation

mcprat
Copy link
Contributor

@mcprat mcprat commented Mar 29, 2019

Applying fixes described here to the other SPI methods:
#94
#95

In order to:
Prevent a data stream larger than 64 KB from passing per command and warn the user
Fix the weird data corruption error that may or may not occur from full hardware limit length reads

Applying fixes described here:
adafruit#94 
adafruit#95 

In order to:
Prevent a data stream larger than 64 KB from passing per command and warn the user
Fix the weird data corruption error that may or may not occur from full hardware limit length reads
@mcprat mcprat changed the title Prevention of hardware limit errors and data corruption SPI Methods: Prevention of hardware limit errors and data corruption Mar 29, 2019
@mcprat
Copy link
Contributor Author

mcprat commented Mar 29, 2019

@ladyada let me know what you think of these pull requests when you have time. This is my last pull request for now. I would say this portion of the library for SPI is perfect after these couple changes.

Thanks

@ladyada
Copy link
Member

ladyada commented Mar 29, 2019

oof theres a conflict, can you rebase/fix and then i can merge?

@mcprat
Copy link
Contributor Author

mcprat commented Mar 29, 2019

mmmmm.... I'm still kind of new to github...I'll figure it out tomorrow

@ladyada
Copy link
Member

ladyada commented Mar 29, 2019

lol no biggie :) thank you!

@mcprat
Copy link
Contributor Author

mcprat commented Mar 30, 2019

@ladyada Alright...I did a merging commit and it looks good

Thanks a lot for the quick replies

@ladyada ladyada merged commit 377c684 into adafruit:master Mar 30, 2019
mcprat pushed a commit to mcprat/Adafruit_Python_GPIO that referenced this pull request Apr 2, 2019
Fix mistakes from adafruit#98 
This time, extensively tested

Also added support for read requests of odd length, read requests of length 1 working
Also applied same ideas to write requests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants