EXTUI and UBL compilation fixes (#13420)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							b376c7e374
						
					
				
				
					commit
					3fb8489ae3
				
			@@ -32,6 +32,10 @@
 | 
			
		||||
  #include "../../../module/motion.h"
 | 
			
		||||
  #include "../../bedlevel/bedlevel.h"
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(EXTENSIBLE_UI)
 | 
			
		||||
    #include "../../../lcd/extensible_ui/ui_api.h"
 | 
			
		||||
  #endif
 | 
			
		||||
  
 | 
			
		||||
  #include "math.h"
 | 
			
		||||
 | 
			
		||||
  void unified_bed_leveling::echo_name() {
 | 
			
		||||
 
 | 
			
		||||
@@ -49,6 +49,10 @@
 | 
			
		||||
  #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
 | 
			
		||||
  #include "../../../core/debug_out.h"
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(EXTENSIBLE_UI)
 | 
			
		||||
    #include "../../../lcd/extensible_ui/ui_api.h"
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  #include <math.h>
 | 
			
		||||
 | 
			
		||||
  #define UBL_G29_P31
 | 
			
		||||
@@ -389,12 +393,13 @@
 | 
			
		||||
 | 
			
		||||
        case 2:
 | 
			
		||||
          // Allow the user to specify the height because 10mm is a little extreme in some cases.
 | 
			
		||||
          for (uint8_t x = (GRID_MAX_POINTS_X) / 3; x < 2 * (GRID_MAX_POINTS_X) / 3; x++)   // Create a rectangular raised area in
 | 
			
		||||
            for (uint8_t y = (GRID_MAX_POINTS_Y) / 3; y < 2 * (GRID_MAX_POINTS_Y) / 3; y++) // the center of the bed
 | 
			
		||||
          for (uint8_t x = (GRID_MAX_POINTS_X) / 3; x < 2 * (GRID_MAX_POINTS_X) / 3; x++)     // Create a rectangular raised area in
 | 
			
		||||
            for (uint8_t y = (GRID_MAX_POINTS_Y) / 3; y < 2 * (GRID_MAX_POINTS_Y) / 3; y++) { // the center of the bed
 | 
			
		||||
              z_values[x][y] += parser.seen('C') ? g29_constant : 9.99f;
 | 
			
		||||
              #if ENABLED(EXTENSIBLE_UI)
 | 
			
		||||
                ExtUI::onMeshUpdate(x, y, z_values[x][y]);
 | 
			
		||||
              #endif
 | 
			
		||||
            }
 | 
			
		||||
          break;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,10 @@
 | 
			
		||||
#include "../../gcode.h"
 | 
			
		||||
#include "../../../feature/bedlevel/bedlevel.h"
 | 
			
		||||
 | 
			
		||||
#if ENABLED(EXTENSIBLE_UI)
 | 
			
		||||
  #include "../../../lcd/extensible_ui/ui_api.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * M421: Set a single Mesh Bed Leveling Z coordinate
 | 
			
		||||
 *
 | 
			
		||||
 
 | 
			
		||||
@@ -87,6 +87,10 @@
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if HAS_LEVELING
 | 
			
		||||
  #include "../../feature/bedlevel.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if HAS_FILAMENT_SENSOR
 | 
			
		||||
  #include "../../feature/runout.h"
 | 
			
		||||
#endif
 | 
			
		||||
@@ -417,7 +421,9 @@ namespace ExtUI {
 | 
			
		||||
 | 
			
		||||
    void setJunctionDeviation_mm(const float value) {
 | 
			
		||||
      planner.junction_deviation_mm = clamp(value, 0.01, 0.3);
 | 
			
		||||
      planner.recalculate_max_e_jerk();
 | 
			
		||||
      #if ENABLED(LIN_ADVANCE)
 | 
			
		||||
        planner.recalculate_max_e_jerk();
 | 
			
		||||
      #endif
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  #else
 | 
			
		||||
@@ -579,7 +585,7 @@ namespace ExtUI {
 | 
			
		||||
 | 
			
		||||
  #if HAS_LEVELING
 | 
			
		||||
    bool getLevelingActive() { return planner.leveling_active; }
 | 
			
		||||
    void setLevelingActive(const bool state) { set_bed_leveling_enabled(state) }
 | 
			
		||||
    void setLevelingActive(const bool state) { set_bed_leveling_enabled(state); }
 | 
			
		||||
    #if HAS_MESH
 | 
			
		||||
      bool getMeshValid() { return leveling_is_valid(); }
 | 
			
		||||
      bed_mesh_t getMeshArray() { return Z_VALUES; }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user