Skip to content

Commit 8eca715

Browse files
committed
remove loops
1 parent f9821f6 commit 8eca715

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Adafruit_SPITFT.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,10 +2305,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_HIGH(void) {
23052305
#endif // end !HAS_PORT_SET_CLR
23062306
#else // !USE_FAST_PINIO
23072307
digitalWrite(swspi._mosi, HIGH);
2308-
#if defined(ESP32)
2309-
for (uint8_t i = 0; i < 1; i++)
2310-
;
2311-
#endif // end ESP32
23122308
#endif // end !USE_FAST_PINIO
23132309
}
23142310

@@ -2328,10 +2324,6 @@ inline void Adafruit_SPITFT::SPI_MOSI_LOW(void) {
23282324
#endif // end !HAS_PORT_SET_CLR
23292325
#else // !USE_FAST_PINIO
23302326
digitalWrite(swspi._mosi, LOW);
2331-
#if defined(ESP32)
2332-
for (uint8_t i = 0; i < 1; i++)
2333-
;
2334-
#endif // end ESP32
23352327
#endif // end !USE_FAST_PINIO
23362328
}
23372329

@@ -2345,20 +2337,12 @@ inline void Adafruit_SPITFT::SPI_SCK_HIGH(void) {
23452337
*swspi.sckPortSet = 1;
23462338
#else // !KINETISK
23472339
*swspi.sckPortSet = swspi.sckPinMask;
2348-
#if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
2349-
for (uint8_t i = 0; i < 1; i++)
2350-
;
2351-
#endif
23522340
#endif
23532341
#else // !HAS_PORT_SET_CLR
23542342
*swspi.sckPort |= swspi.sckPinMaskSet;
23552343
#endif // end !HAS_PORT_SET_CLR
23562344
#else // !USE_FAST_PINIO
23572345
digitalWrite(swspi._sck, HIGH);
2358-
#if defined(ESP32)
2359-
for (uint8_t i = 0; i < 1; i++)
2360-
;
2361-
#endif // end ESP32
23622346
#endif // end !USE_FAST_PINIO
23632347
}
23642348

@@ -2372,20 +2356,12 @@ inline void Adafruit_SPITFT::SPI_SCK_LOW(void) {
23722356
*swspi.sckPortClr = 1;
23732357
#else // !KINETISK
23742358
*swspi.sckPortClr = swspi.sckPinMask;
2375-
#if defined(__IMXRT1052__) || defined(__IMXRT1062__) // Teensy 4.x
2376-
for (uint8_t i = 0; i < 1; i++)
2377-
;
2378-
#endif
23792359
#endif
23802360
#else // !HAS_PORT_SET_CLR
23812361
*swspi.sckPort &= swspi.sckPinMaskClr;
23822362
#endif // end !HAS_PORT_SET_CLR
23832363
#else // !USE_FAST_PINIO
23842364
digitalWrite(swspi._sck, LOW);
2385-
#if defined(ESP32)
2386-
for (uint8_t i = 0; i < 1; i++)
2387-
;
2388-
#endif // end ESP32
23892365
#endif // end !USE_FAST_PINIO
23902366
}
23912367

0 commit comments

Comments
 (0)