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
 mraa_result_t
79
 mraa_result_t
80
 StepMotor::stepForward (int ticks) {
80
 StepMotor::stepForward (int ticks) {
81
     dirForward ();
81
     dirForward ();
82
-    move (ticks);
82
+    return move (ticks);
83
 }
83
 }
84
 
84
 
85
 mraa_result_t
85
 mraa_result_t
86
 StepMotor::stepBackwards (int ticks) {
86
 StepMotor::stepBackwards (int ticks) {
87
     dirBackwards ();
87
     dirBackwards ();
88
-    move (ticks);
88
+    return move (ticks);
89
 }
89
 }
90
 
90
 
91
 mraa_result_t
91
 mraa_result_t