浏览代码

Use const ref args in probe_pt

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

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

2006
   //   - Raise to the BETWEEN height
2006
   //   - Raise to the BETWEEN height
2007
   // - Return the probed Z position
2007
   // - Return the probed Z position
2008
   //
2008
   //
2009
-  static float probe_pt(float x, float y, bool stow = true, int verbose_level = 1) {
2009
+  static float probe_pt(const float &x, const float &y, bool stow = true, int verbose_level = 1) {
2010
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2010
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2011
       if (DEBUGGING(LEVELING)) {
2011
       if (DEBUGGING(LEVELING)) {
2012
         SERIAL_ECHOPAIR(">>> probe_pt(", x);
2012
         SERIAL_ECHOPAIR(">>> probe_pt(", x);

正在加载...
取消
保存