浏览代码

stepmotor: various functions should return a value

defects 386, 387

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Jon Trulson 9 年前
父节点
当前提交
6e2587576d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/stepmotor/stepmotor.cxx

+ 2
- 2
src/stepmotor/stepmotor.cxx 查看文件

@@ -79,13 +79,13 @@ StepMotor::setSpeed (int speed) {
79 79
 mraa_result_t
80 80
 StepMotor::stepForward (int ticks) {
81 81
     dirForward ();
82
-    move (ticks);
82
+    return move (ticks);
83 83
 }
84 84
 
85 85
 mraa_result_t
86 86
 StepMotor::stepBackwards (int ticks) {
87 87
     dirBackwards ();
88
-    move (ticks);
88
+    return move (ticks);
89 89
 }
90 90
 
91 91
 mraa_result_t