Fix BABYSTEPPING, add it to Travis test

This commit is contained in:
Scott Lahteine 2016-05-02 20:01:00 -07:00
parent 37c4970d87
commit 85e732d5fd
2 changed files with 4 additions and 4 deletions

View file

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

View file

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