浏览代码

Fix BABYSTEPPING, add it to Travis test

Scott Lahteine 8 年前
父节点
当前提交
85e732d5fd
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      .travis.yml
  2. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
.travis.yml 查看文件

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

+ 2
- 2
Marlin/temperature.cpp 查看文件

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

正在加载...
取消
保存