projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
148c22f
)
spi: fix mistake from mem branch where spi will fail.
author
Thomas Ingleby
<thomas.c.ingleby@intel.com>
Fri, 21 Nov 2014 02:05:43 +0000
(
02:05
+0000)
committer
Thomas Ingleby
<thomas.c.ingleby@intel.com>
Fri, 21 Nov 2014 11:50:59 +0000
(11:50 +0000)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/spi/spi.c
patch
|
blob
|
history
diff --git
a/src/spi/spi.c
b/src/spi/spi.c
index
77a6621
..
7739ce2
100644
(file)
--- a/
src/spi/spi.c
+++ b/
src/spi/spi.c
@@
-56,7
+56,7
@@
mraa_spi_init(int bus)
syslog(LOG_ERR, "spi: Platform Not Initialised");
return NULL;
}
- if (plat->spi_bus_count
>!
0) {
+ if (plat->spi_bus_count
==
0) {
syslog(LOG_ERR, "spi: no spi buses defined in platform");
return NULL;
}