Fix BABYSTEPPING, add it to Travis test
This commit is contained in:
parent
37c4970d87
commit
85e732d5fd
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user