my9221: return mraa_error_t when method says it does
authorBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 14 Jul 2014 12:59:56 +0000 (13:59 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 14 Jul 2014 12:59:56 +0000 (13:59 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/my9221/my9221.cxx

index 63004c7..51a6ede 100644 (file)
@@ -104,6 +104,7 @@ MY9221::lockData () {
         error = mraa_gpio_write (m_dataPinCtx, HIGH);
         error = mraa_gpio_write (m_dataPinCtx, LOW);
     }
+    return error;
 }
 
 mraa_result_t
@@ -124,4 +125,5 @@ MY9221::send16bitBlock (short data) {
 
         data <<= 1;
     }
+    return error;
 }