Revision daf6a575 scout_avr/src/stepper.cpp

View differences:

scout_avr/src/stepper.cpp
108 108
  if((step.dir == 1) && (step.cw <= step.pos)) step_dir(-1);
109 109
  else if((step.dir == -1) && (step.ccw >= step.pos)) step_dir(1);
110 110
}
111

  
112
int step_get_pos()
113
{
114
  return step.pos;
115
}

Also available in: Unified diff