Skip to content

Set SPI mode and speed on initialization#9

Open
CapnBry wants to merge 1 commit intokcuzner:masterfrom
CapnBry:master
Open

Set SPI mode and speed on initialization#9
CapnBry wants to merge 1 commit intokcuzner:masterfrom
CapnBry:master

Conversation

@CapnBry
Copy link
Copy Markdown

@CapnBry CapnBry commented Mar 6, 2016

Depending on what else uses the SPI bus, it might be in a different mode when avrdude is run. This patch resets the mode SPI mode to mode0, 8 bit, and sets the bus speed on initialization. I've also moved the code to open the SPI device into the initialization, so the device isn't opened and closed 30,000 times per upload.

This addresses issue #7.

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