Skip to content
Snippets Groups Projects
Commit ef54b32b authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[SPI] Fixed minor bug

parent 78858222
No related branches found
No related tags found
No related merge requests found
...@@ -340,7 +340,7 @@ inline uint16_t SPI::read16() { return transfer(static_cast<uint16_t>(0)); } ...@@ -340,7 +340,7 @@ inline uint16_t SPI::read16() { return transfer(static_cast<uint16_t>(0)); }
inline void SPI::read(uint8_t *data, size_t nBytes) inline void SPI::read(uint8_t *data, size_t nBytes)
{ {
// Reset the data // Reset the data
for (size_t i = 0; i < nBytes / 2; i++) for (size_t i = 0; i < nBytes; i++)
data[i] = 0; data[i] = 0;
// Read the data // Read the data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment