aio.c: fix ordering of comparison operator
authorBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 28 Jul 2014 12:56:20 +0000 (14:56 +0200)
committerBrendan 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

index 520b07e..09a4a4a 100644 (file)
@@ -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;