Update Adafruit_SPIDevice.cpp

Added code to define 'i'.
This commit is contained in:
howard-wa9axq 2020-11-28 15:05:52 -06:00 committed by GitHub
parent a5c631593e
commit 197d21ad2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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