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:
ad4c42e
)
aio.c: fix ordering of comparison operator
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Mon, 28 Jul 2014 12:56:20 +0000
(14:56 +0200)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 9 Sep 2014 16:29:40 +0000
(17:29 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/aio/aio.c
patch
|
blob
|
history
diff --git
a/src/aio/aio.c
b/src/aio/aio.c
index
520b07e
..
09a4a4a
100644
(file)
--- a/
src/aio/aio.c
+++ b/
src/aio/aio.c
@@
-137,7
+137,7
@@
uint16_t mraa_aio_read(mraa_aio_context dev)
}
/* Adjust the raw analog input reading to supported resolution value*/
- if (raw_bits
=!
sup_bits) {
+ if (raw_bits
!=
sup_bits) {
if (raw_bits > sup_bits) {
shifter_value = raw_bits - sup_bits;
analog_value = analog_value >> shifter_value;