Browse Source

Fix BABYSTEPPING, add it to Travis test

pull/1/head
Scott Lahteine 9 years ago
parent
commit
85e732d5fd
  1. 4
      .travis.yml
  2. 4
      Marlin/temperature.cpp

4
.travis.yml

@ -105,10 +105,10 @@ script:
#- opt_enable MAKRPANEL
#- build_marlin
#
# REPRAP_DISCOUNT_SMART_CONTROLLER
# REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, and BABYSTEPPING
#
- restore_configs
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING
- build_marlin
#
# G3D_PANEL

4
Marlin/temperature.cpp

@ -1835,11 +1835,11 @@ ISR(TIMER0_COMPB_vect) {
int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
if (curTodo > 0) {
babystep(axis,/*fwd*/true);
stepper.babystep(axis,/*fwd*/true);
babystepsTodo[axis]--; //fewer to do next time
}
else if (curTodo < 0) {
babystep(axis,/*fwd*/false);
stepper.babystep(axis,/*fwd*/false);
babystepsTodo[axis]++; //fewer to do next time
}
}

Loading…
Cancel
Save