Browse Source

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 years ago
parent
commit
6e2587576d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/stepmotor/stepmotor.cxx

+ 2
- 2
src/stepmotor/stepmotor.cxx View File

@@ -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