Skip to content

Commit

Permalink
espressif#1623, implementing suggested change SPI.h/cpp
Browse files Browse the repository at this point in the history
Splitted suggested fix issue espressif#1623 in a header and source part. Dit not completely dive into the code.
Giving data twice as parameter feels wrong, but it compiles, and i can succesfully use the W5500 with SPI with this fix.
Doesn't compile without.
  • Loading branch information
iafilius authored Dec 2, 2018
1 parent 04b3709 commit 5ec1da3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/SPI/src/SPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ class SPIClass

void beginTransaction(SPISettings settings);
void endTransaction(void);

void transfer(uint8_t * data, uint32_t size);
uint8_t transfer(uint8_t data);
uint16_t transfer16(uint16_t data);
uint32_t transfer32(uint32_t data);

void transferBytes(uint8_t * data, uint8_t * out, uint32_t size);
void transferBits(uint32_t data, uint32_t * out, uint8_t bits);

Expand Down

0 comments on commit 5ec1da3

Please sign in to comment.