Skip to content

Commit ac606e5

Browse files
BriscoeTechBriscoeTech
authored andcommitted
fixed spelling mistake
1 parent 459d169 commit ac606e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/SPI/SPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ void SPIClass::checkDmaComplete(uint8_t channel)
330330
}
331331
}
332332

333-
// dma transfer function for spi with pole for completion
333+
// dma transfer function for spi with poll for completion
334334
void SPIClass::transfer(const void* txbuf, void* rxbuf, uint32_t count, bool block)
335335
{
336-
// start the dma transfer, but do not specify a user callback function, will pole for completion instead
336+
// start the dma transfer, but do not specify a user callback function, will poll for completion instead
337337
transfer(txbuf, rxbuf, count, NULL);
338338

339339
// if this function should automatically wait for completion, otherwise user must do manually

libraries/SPI/SPI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class SPIClass {
118118
uint16_t transfer16(uint16_t data);
119119
void transfer(void *buf, size_t count);
120120
void transfer(void* txbuf, void* rxbuf, size_t count); //non dma
121-
void transfer(const void* txbuf, void* rxbuf, uint32_t count, bool block = true); //dma pole for completion
122-
void waitForTransfer(void); //dma pole for completion
121+
void transfer(const void* txbuf, void* rxbuf, uint32_t count, bool block = true); //dma poll for completion
122+
void waitForTransfer(void); //dma poll for completion
123123
void transfer(void* txbuf, void* rxbuf, uint32_t count, void (*functionToCallWhenComplete)(void) ); //dma asynchronous
124124

125125
// Transaction Functions

0 commit comments

Comments
 (0)