Misc changes from struct refactor (#15289)
This commit is contained in:
@ -47,7 +47,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
#include "../../feature/bedlevel/ubl/ubl.h"
|
||||
#include "../../feature/bedlevel/bedlevel.h"
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -60,7 +60,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
#include "../../feature/bedlevel/ubl/ubl.h"
|
||||
#include "../../feature/bedlevel/bedlevel.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -809,7 +809,7 @@ namespace ExtUI {
|
||||
void setLevelingActive(const bool state) { set_bed_leveling_enabled(state); }
|
||||
bool getMeshValid() { return leveling_is_valid(); }
|
||||
#if HAS_MESH
|
||||
bed_mesh_t getMeshArray() { return Z_VALUES_ARR; }
|
||||
bed_mesh_t& getMeshArray() { return Z_VALUES_ARR; }
|
||||
float getMeshPoint(const uint8_t xpos, const uint8_t ypos) { return Z_VALUES(xpos,ypos); }
|
||||
void setMeshPoint(const uint8_t xpos, const uint8_t ypos, const float zoff) {
|
||||
if (WITHIN(xpos, 0, GRID_MAX_POINTS_X) && WITHIN(ypos, 0, GRID_MAX_POINTS_Y)) {
|
||||
|
@ -61,7 +61,7 @@ namespace ExtUI {
|
||||
constexpr uint8_t fanCount = FAN_COUNT;
|
||||
|
||||
#if HAS_MESH
|
||||
typedef float (&bed_mesh_t)[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
|
||||
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
|
||||
#endif
|
||||
|
||||
bool isMoving();
|
||||
@ -128,7 +128,7 @@ namespace ExtUI {
|
||||
void setLevelingActive(const bool);
|
||||
bool getMeshValid();
|
||||
#if HAS_MESH
|
||||
bed_mesh_t getMeshArray();
|
||||
bed_mesh_t& getMeshArray();
|
||||
float getMeshPoint(const uint8_t xpos, const uint8_t ypos);
|
||||
void setMeshPoint(const uint8_t xpos, const uint8_t ypos, const float zval);
|
||||
void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval);
|
||||
|
@ -8,13 +8,13 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "../HAL/shared/Marduino.h"
|
||||
#include "../core/macros.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h> // wchar_t
|
||||
#include <stdint.h> // uint32_t
|
||||
|
||||
#include "../HAL/shared/Marduino.h"
|
||||
#include "../core/macros.h"
|
||||
|
||||
// read a byte from ROM or RAM
|
||||
typedef uint8_t (*read_byte_cb_t)(uint8_t * str);
|
||||
|
||||
|
@ -420,8 +420,8 @@ void _lcd_ubl_map_homing() {
|
||||
*/
|
||||
void _lcd_ubl_map_lcd_edit_cmd() {
|
||||
char ubl_lcd_gcode[50], str[10], str2[10];
|
||||
dtostrf(pgm_read_float(&ubl._mesh_index_to_xpos[x_plot]), 0, 2, str);
|
||||
dtostrf(pgm_read_float(&ubl._mesh_index_to_ypos[y_plot]), 0, 2, str2);
|
||||
dtostrf(ubl.mesh_index_to_xpos(x_plot), 0, 2, str);
|
||||
dtostrf(ubl.mesh_index_to_ypos(y_plot), 0, 2, str2);
|
||||
snprintf_P(ubl_lcd_gcode, sizeof(ubl_lcd_gcode), PSTR("G29 P4 X%s Y%s R%i"), str, str2, int(n_edit_pts));
|
||||
lcd_enqueue_one_now(ubl_lcd_gcode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user