瀏覽代碼

Fix ExtUI UBL method calls (#15704)

InsanityAutomation 5 年之前
父節點
當前提交
cc4d3a215e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 4
- 4
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp 查看文件

338
           }
338
           }
339
           z_values[cpos.x][cpos.y] = NAN;
339
           z_values[cpos.x][cpos.y] = NAN;
340
           #if ENABLED(EXTENSIBLE_UI)
340
           #if ENABLED(EXTENSIBLE_UI)
341
-            ExtUI::onMeshUpdate(closest, 0);
341
+            ExtUI::onMeshUpdate(cpos, 0.0f);
342
           #endif
342
           #endif
343
           cnt++;
343
           cnt++;
344
         }
344
         }
541
                 else {
541
                 else {
542
                   z_values[cpos.x][cpos.y] = g29_constant;
542
                   z_values[cpos.x][cpos.y] = g29_constant;
543
                   #if ENABLED(EXTENSIBLE_UI)
543
                   #if ENABLED(EXTENSIBLE_UI)
544
-                    ExtUI::onMeshUpdate(closest, g29_constant);
544
+                    ExtUI::onMeshUpdate(cpos, g29_constant);
545
                   #endif
545
                   #endif
546
                 }
546
                 }
547
               }
547
               }
783
                       );
783
                       );
784
           z_values[best.pos.x][best.pos.y] = measured_z;
784
           z_values[best.pos.x][best.pos.y] = measured_z;
785
           #if ENABLED(EXTENSIBLE_UI)
785
           #if ENABLED(EXTENSIBLE_UI)
786
-            ExtUI::onMeshUpdate(best, measured_z);
786
+            ExtUI::onMeshUpdate(best.pos, measured_z);
787
           #endif
787
           #endif
788
         }
788
         }
789
         SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
789
         SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
1335
         if (!isnan(v2)) {
1335
         if (!isnan(v2)) {
1336
           z_values[x][y] = v1 < v2 ? v1 : v1 + v1 - v2;
1336
           z_values[x][y] = v1 < v2 ? v1 : v1 + v1 - v2;
1337
           #if ENABLED(EXTENSIBLE_UI)
1337
           #if ENABLED(EXTENSIBLE_UI)
1338
-            ExtUI::onMeshUpdate(x, y, z_values[pos.x][pos.y]);
1338
+            ExtUI::onMeshUpdate(x, y, z_values[x][y]);
1339
           #endif
1339
           #endif
1340
           return true;
1340
           return true;
1341
         }
1341
         }

Loading…
取消
儲存