瀏覽代碼

Fix point_t pointer in Nozzle::zigzag

Scott Lahteine 7 年之前
父節點
當前提交
d8ef9bda18
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/nozzle.cpp

+ 1
- 1
Marlin/nozzle.cpp 查看文件

@@ -80,7 +80,7 @@
80 80
     const uint8_t zigs = objects << 1;
81 81
     const bool horiz = FABS(diffx) >= FABS(diffy);    // Do a horizontal wipe?
82 82
     const float P = (horiz ? diffx : diffy) / zigs;   // Period of each zig / zag
83
-    point_t *side;
83
+    const point_t *side;
84 84
     for (uint8_t j = 0; j < strokes; j++) {
85 85
       for (int8_t i = 0; i < zigs; i++) {
86 86
         side = (i & 1) ? &end : &start;

Loading…
取消
儲存