From 0ed1508315674d42280d93ad873ebb69f8806a4b Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Mon, 28 Jul 2014 14:56:20 +0200 Subject: [PATCH] aio.c: fix ordering of comparison operator Signed-off-by: Brendan Le Foll --- src/aio/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aio/aio.c b/src/aio/aio.c index 520b07e..09a4a4a 100644 --- 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;