Browse Source

Fix BABYSTEPPING, add it to Travis test

Scott Lahteine 8 years ago
parent
commit
85e732d5fd
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      .travis.yml
  2. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
.travis.yml View File

105
   #- opt_enable MAKRPANEL
105
   #- opt_enable MAKRPANEL
106
   #- build_marlin
106
   #- build_marlin
107
   #
107
   #
108
-  # REPRAP_DISCOUNT_SMART_CONTROLLER
108
+  # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, and BABYSTEPPING
109
   #
109
   #
110
   - restore_configs
110
   - restore_configs
111
-  - opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
111
+  - opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING
112
   - build_marlin
112
   - build_marlin
113
   #
113
   #
114
   # G3D_PANEL
114
   # G3D_PANEL

+ 2
- 2
Marlin/temperature.cpp View File

1835
       int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
1835
       int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
1836
 
1836
 
1837
       if (curTodo > 0) {
1837
       if (curTodo > 0) {
1838
-        babystep(axis,/*fwd*/true);
1838
+        stepper.babystep(axis,/*fwd*/true);
1839
         babystepsTodo[axis]--; //fewer to do next time
1839
         babystepsTodo[axis]--; //fewer to do next time
1840
       }
1840
       }
1841
       else if (curTodo < 0) {
1841
       else if (curTodo < 0) {
1842
-        babystep(axis,/*fwd*/false);
1842
+        stepper.babystep(axis,/*fwd*/false);
1843
         babystepsTodo[axis]++; //fewer to do next time
1843
         babystepsTodo[axis]++; //fewer to do next time
1844
       }
1844
       }
1845
     }
1845
     }

Loading…
Cancel
Save