Update Adafruit_SPIDevice.cpp

This commit is contained in:
howard-wa9axq 2020-11-28 16:16:58 -06:00 committed by GitHub
parent 0787a7dd4d
commit 40ccbb3739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -115,10 +115,12 @@ void Adafruit_SPIDevice::transfer(uint8_t *buffer, size_t len) {
#ifdef SPARK
_spi->transfer(buffer, buffer, len, NULL);
#else
#elsif STM32
for (size_t i = 0; i < len; i++) {
_spi->transfer(buffer[i]);
}
#else
_spi->transfer(buffer, len);
#endif
return;