Update Adafruit_SPIDevice.cpp

The SPI.cpp that the STM32 project uses does not have a transfer method with both a buffer and a length.  Changes to this file uses a transfer method that just needs a single 8 bit character.
This commit is contained in:
howard-wa9axq 2020-11-28 14:15:01 -06:00 committed by GitHub
parent 5ef1481a1f
commit a5c631593e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ void Adafruit_SPIDevice::transfer(uint8_t *buffer, size_t len) {
#ifdef SPARK
_spi->transfer(buffer, buffer, len, NULL);
#else
_spi->transfer(buffer, len);
for(i = 0; i < len; i++ )
_spi->transfer(buffer[i]);
#endif
return;