Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
moononournation committed Jun 14, 2021
1 parent 38bbf95 commit 0b6a2de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/databus/Arduino_mbedSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,13 @@ void Arduino_mbedSPI::writeBytes(uint8_t *data, uint32_t len)

void Arduino_mbedSPI::writePattern(uint8_t *data, uint8_t len, uint32_t repeat)
{
#if defined(ESP8266) || defined(ESP32)
HWSPI.writePattern(data, len, repeat);
#else // !(defined(ESP8266) || defined(ESP32))
while (repeat--)
{
for (uint8_t i = 0; i < len; i++)
{
write(data[i]);
}
}
#endif // !(defined(ESP8266) || defined(ESP32))
}

INLINE void Arduino_mbedSPI::WRITE(uint8_t d)
Expand Down

0 comments on commit 0b6a2de

Please sign in to comment.