uart: change hpp, use new names of functions
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Tue, 19 May 2015 10:22:08 +0000 (11:22 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Thu, 28 May 2015 22:31:11 +0000 (23:31 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
api/mraa/uart.hpp

index 928e149..3f4a53b 100644 (file)
@@ -58,7 +58,7 @@ class Uart
      */
     ~Uart()
     {
-        closeDevice();
+        stopDevice();
         return;
     }
 
@@ -97,9 +97,9 @@ class Uart
      * @return mraa_result_t
      */
     mraa_result_t
-    closeDevice()
+    stopDevice()
     {
-        return mraa_uart_close_dev(m_uart);
+        return mraa_uart_stop(m_uart);
     }
 
     /**