Skip to content

Commit be7a1fd

Browse files
authored
correct copied comment
1 parent c546148 commit be7a1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utility/SPIDEV/interrupt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int attachInterrupt(rf24_gpio_pin_t pin, int mode, void (*function)(void))
143143

144144
std::pair<std::map<rf24_gpio_pin_t, gpio_fd>::iterator, bool> gpioPair = irqChipCache.cachedPins.insert(std::pair<rf24_gpio_pin_t, gpio_fd>(pin, request.fd));
145145
if (!gpioPair.second) {
146-
// this should not be reached, but indexPair.first needs to be the inserted map element
146+
// this should not be reached, but gpioPair.first needs to be the inserted map element
147147
throw IRQException("[attachInterrupt] Could not cache the GPIO pin's file descriptor");
148148
return 0;
149149
}

0 commit comments

Comments
 (0)