mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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>
This commit is contained in:
parent
f8179328cf
commit
6e2587576d
@ -79,13 +79,13 @@ StepMotor::setSpeed (int speed) {
|
||||
mraa_result_t
|
||||
StepMotor::stepForward (int ticks) {
|
||||
dirForward ();
|
||||
move (ticks);
|
||||
return move (ticks);
|
||||
}
|
||||
|
||||
mraa_result_t
|
||||
StepMotor::stepBackwards (int ticks) {
|
||||
dirBackwards ();
|
||||
move (ticks);
|
||||
return move (ticks);
|
||||
}
|
||||
|
||||
mraa_result_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user