@@ -311,13 +311,13 @@ bool Adafruit_SPIDevice::write(uint8_t *buffer, size_t len,
311
311
}
312
312
} else
313
313
#elif defined(ARDUINO_ARCH_SAMD) && defined(_ADAFRUIT_ZERODMA_H_)
314
- // The variant of transfer() used below currently only exists in the Adafruit core.
315
- // It causes a build failure when building against the main Arduino SAMD core.
316
- // Unfortunately there doesn't seem to be a supported #define that this code
317
- // can use to tell which core it's building against. This hack
318
- // (checking for the include guard that gets defined when the Adafruit core's
319
- // SPI.h includes Adafruit_ZeroDMA.h) works for now, but it should be improved
320
- // when possible.
314
+ // The variant of transfer() used below currently only exists in the Adafruit
315
+ // core. It causes a build failure when building against the main Arduino SAMD
316
+ // core. Unfortunately there doesn't seem to be a supported #define that this
317
+ // code can use to tell which core it's building against. This hack (checking
318
+ // for the include guard that gets defined when the Adafruit core's SPI.h
319
+ // includes Adafruit_ZeroDMA.h) works for now, but it should be improved when
320
+ // possible.
321
321
if (_spi) {
322
322
if (prefix_len > 0 ) {
323
323
_spi->transfer (prefix_buffer, nullptr , prefix_len);
@@ -431,13 +431,13 @@ bool Adafruit_SPIDevice::write_then_read(uint8_t *write_buffer,
431
431
}
432
432
} else
433
433
#elif defined(ARDUINO_ARCH_SAMD) && defined(_ADAFRUIT_ZERODMA_H_)
434
- // The variant of transfer() used below currently only exists in the Adafruit core.
435
- // It causes a build failure when building against the main Arduino SAMD core.
436
- // Unfortunately there doesn't seem to be a supported #define that this code
437
- // can use to tell which core it's building against. This hack
438
- // (checking for the include guard that gets defined when the Adafruit core's
439
- // SPI.h includes Adafruit_ZeroDMA.h) works for now, but it should be improved
440
- // when possible.
434
+ // The variant of transfer() used below currently only exists in the Adafruit
435
+ // core. It causes a build failure when building against the main Arduino SAMD
436
+ // core. Unfortunately there doesn't seem to be a supported #define that this
437
+ // code can use to tell which core it's building against. This hack (checking
438
+ // for the include guard that gets defined when the Adafruit core's SPI.h
439
+ // includes Adafruit_ZeroDMA.h) works for now, but it should be improved when
440
+ // possible.
441
441
if (_spi) {
442
442
if (write_len > 0 ) {
443
443
_spi->transfer (write_buffer, nullptr , write_len);
0 commit comments