From 85e732d5fdc948009c1fa56ca5d344242e2fbf52 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 2 May 2016 20:01:00 -0700 Subject: [PATCH] Fix BABYSTEPPING, add it to Travis test --- .travis.yml | 4 ++-- Marlin/temperature.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index fecb82a8d1..985a186fbb 100644 --- a/.travis.yml +++ b/.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 diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 7fd25bc8a4..3f5b2d1c53 100644 --- a/Marlin/temperature.cpp +++ b/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 } }