Pārlūkot izejas kodu

Fix SD SPI Speed override, FTDI mesh edit (#20657)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
InsanityAutomation 4 gadus atpakaļ
vecāks
revīzija
6b458676b1
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 0
- 5
Marlin/src/inc/Conditionals_LCD.h Parādīt failu

@@ -1045,11 +1045,6 @@
1045 1045
   #define INVERT_E_DIR false
1046 1046
 #endif
1047 1047
 
1048
-// Fallback SPI Speed for SD
1049
-#if ENABLED(SDSUPPORT) && !defined(SD_SPI_SPEED)
1050
-  #define SD_SPI_SPEED SPI_FULL_SPEED
1051
-#endif
1052
-
1053 1048
 /**
1054 1049
  * This setting is also used by M109 when trying to calculate
1055 1050
  * a ballpark safe margin to prevent wait-forever situation.

+ 5
- 0
Marlin/src/inc/Conditionals_post.h Parādīt failu

@@ -2708,6 +2708,11 @@
2708 2708
   #endif
2709 2709
 #endif
2710 2710
 
2711
+// Fallback SPI Speed for SD
2712
+#if ENABLED(SDSUPPORT) && !defined(SD_SPI_SPEED)
2713
+  #define SD_SPI_SPEED SPI_FULL_SPEED
2714
+#endif
2715
+
2711 2716
 // Defined here to catch the above defines
2712 2717
 #if ENABLED(SDCARD_SORT_ALPHA) && (FOLDER_SORTING || ENABLED(SDSORT_GCODE))
2713 2718
   #define HAS_FOLDER_SORTING 1

+ 2
- 13
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/bed_mesh_screen.cpp Parādīt failu

@@ -21,7 +21,7 @@
21 21
 
22 22
 #include "../config.h"
23 23
 
24
-#if BOTH(TOUCH_UI_FTDI_EVE, AUTO_BED_LEVELING_UBL)
24
+#if BOTH(TOUCH_UI_FTDI_EVE, HAS_MESH)
25 25
 
26 26
 #include "screens.h"
27 27
 #include "screen_data.h"
@@ -309,17 +309,6 @@ void BedMeshScreen::onMeshUpdate(const int8_t, const int8_t, const float) {
309 309
     onRefresh();
310 310
 }
311 311
 
312
-bool BedMeshScreen::isMeshComplete(ExtUI::bed_mesh_t data) {
313
-  for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) {
314
-    for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++) {
315
-      if (isnan(data[x][y])) {
316
-        return false;
317
-      }
318
-    }
319
-  }
320
-  return true;
321
-}
322
-
323 312
 void BedMeshScreen::onMeshUpdate(const int8_t x, const int8_t y, const ExtUI::probe_state_t state) {
324 313
   switch (state) {
325 314
     case ExtUI::MESH_START:
@@ -327,7 +316,7 @@ void BedMeshScreen::onMeshUpdate(const int8_t x, const int8_t y, const ExtUI::pr
327 316
       screen_data.BedMesh.message = screen_data.BedMesh.MSG_NONE;
328 317
       break;
329 318
     case ExtUI::MESH_FINISH:
330
-      if (screen_data.BedMesh.count == GRID_MAX_POINTS && isMeshComplete(ExtUI::getMeshArray()))
319
+      if (screen_data.BedMesh.count == GRID_MAX_POINTS && ExtUI::getMeshValid())
331 320
         screen_data.BedMesh.message = screen_data.BedMesh.MSG_MESH_COMPLETE;
332 321
       else
333 322
         screen_data.BedMesh.message = screen_data.BedMesh.MSG_MESH_INCOMPLETE;

+ 0
- 1
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/screens.h Parādīt failu

@@ -539,7 +539,6 @@ class StepsScreen : public BaseNumericAdjustmentScreen, public CachedScreen<STEP
539 539
         static float getHightlightedValue();
540 540
         static void drawHighlightedPointValue();
541 541
         static void drawMesh(int16_t x, int16_t y, int16_t w, int16_t h, ExtUI::bed_mesh_t data, uint8_t opts, float autoscale_max = 0.1);
542
-        static bool isMeshComplete(ExtUI::bed_mesh_t data);
543 542
 
544 543
       public:
545 544
         static void onMeshUpdate(const int8_t x, const int8_t y, const float val);

Notiek ielāde…
Atcelt
Saglabāt