Permalink
Browse files

Fixed bug that prevented SPI transmissions larger than 255 bytes.

Fixed a bug that prevented SPI transmissions larger than 255 bytes. The i variable was uint8_t, changing it to a uint16_t solves the issue.
  • Loading branch information...
1 parent 77e4545 commit 7ac8e879c0238abe5c81afd72482025eb7aa0f55 @blark blark committed Oct 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 spi.c
View
2 spi.c
@@ -149,7 +149,7 @@ static PyObject* transfer(PyObject* self, PyObject* arg)
uint8_t rx[tupleSize];
PyObject* tempItem;
- uint8_t i=0;
+ uint16_t i=0;
while(i < tupleSize)
{

0 comments on commit 7ac8e87

Please sign in to comment.