浏览代码

Multiply by float, not double

Scott Lahteine 5 年前
父节点
当前提交
f307ff68f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/gcode/calibrate/M48.cpp

+ 1
- 1
Marlin/src/gcode/calibrate/M48.cpp 查看文件

176
             // If we have gone out too far, we can do a simple fix and scale the numbers
176
             // If we have gone out too far, we can do a simple fix and scale the numbers
177
             // back in closer to the origin.
177
             // back in closer to the origin.
178
             while (!position_is_reachable_by_probe(next_pos)) {
178
             while (!position_is_reachable_by_probe(next_pos)) {
179
-              next_pos *= 0.8;
179
+              next_pos *= 0.8f;
180
               if (verbose_level > 3)
180
               if (verbose_level > 3)
181
                 SERIAL_ECHOLNPAIR("Moving inward: X", next_pos.x, " Y", next_pos.y);
181
                 SERIAL_ECHOLNPAIR("Moving inward: X", next_pos.x, " Y", next_pos.y);
182
             }
182
             }

正在加载...
取消
保存