projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a71686
)
Corrected constant name in spiClose from PI_I2C_CLOSED to PI_SPI_CLOSED
author
Marco Jassmann
<jaessy77@gmail.com>
Wed, 26 Feb 2020 11:29:55 +0000
(12:29 +0100)
committer
Marco Jassmann
<jaessy77@gmail.com>
Wed, 26 Feb 2020 11:29:55 +0000
(12:29 +0100)
pigpio.c
patch
|
blob
|
history
diff --git
a/pigpio.c
b/pigpio.c
index 409b98121896f8f4deef33c306160b393195f194..033213c5cb5161de2175ae7bf077b0ab02a0c805 100644
(file)
--- a/
pigpio.c
+++ b/
pigpio.c
@@
-4768,7
+4768,7
@@
int spiClose(unsigned handle)
if (spiInfo[handle].state != PI_SPI_OPENED)
SOFT_ERROR(PI_BAD_HANDLE, "bad handle (%d)", handle);
- spiInfo[handle].state = PI_
I2C
_CLOSED;
+ spiInfo[handle].state = PI_
SPI
_CLOSED;
if (!spiAnyOpen(spiInfo[handle].flags))
spiTerm(spiInfo[handle].flags); /* terminate on last close */