mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +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
|
mraa_result_t
|
||||||
StepMotor::stepForward (int ticks) {
|
StepMotor::stepForward (int ticks) {
|
||||||
dirForward ();
|
dirForward ();
|
||||||
move (ticks);
|
return move (ticks);
|
||||||
}
|
}
|
||||||
|
|
||||||
mraa_result_t
|
mraa_result_t
|
||||||
StepMotor::stepBackwards (int ticks) {
|
StepMotor::stepBackwards (int ticks) {
|
||||||
dirBackwards ();
|
dirBackwards ();
|
||||||
move (ticks);
|
return move (ticks);
|
||||||
}
|
}
|
||||||
|
|
||||||
mraa_result_t
|
mraa_result_t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user