From 0b6a2def123639b8fea695333e4391a0316bb764 Mon Sep 17 00:00:00 2001 From: moononournation Date: Mon, 14 Jun 2021 23:09:39 +0800 Subject: [PATCH] remove unused code --- src/databus/Arduino_mbedSPI.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/databus/Arduino_mbedSPI.cpp b/src/databus/Arduino_mbedSPI.cpp index 023c1522..efcb80d0 100644 --- a/src/databus/Arduino_mbedSPI.cpp +++ b/src/databus/Arduino_mbedSPI.cpp @@ -174,9 +174,6 @@ 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++) @@ -184,7 +181,6 @@ void Arduino_mbedSPI::writePattern(uint8_t *data, uint8_t len, uint32_t repeat) write(data[i]); } } -#endif // !(defined(ESP8266) || defined(ESP32)) } INLINE void Arduino_mbedSPI::WRITE(uint8_t d)