From 00170bea971d2d5e14ca7ad77a55e3ca76d98467 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Mon, 14 Jul 2014 13:59:56 +0100 Subject: [PATCH 1/1] my9221: return mraa_error_t when method says it does Signed-off-by: Brendan Le Foll --- src/my9221/my9221.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/my9221/my9221.cxx b/src/my9221/my9221.cxx index 63004c7..51a6ede 100644 --- a/src/my9221/my9221.cxx +++ b/src/my9221/my9221.cxx @@ -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; } -- 2.7.4