Fix some ExtUI issues (#13799)
This commit is contained in:
committed by
Scott Lahteine
parent
db89fc0304
commit
610fb46683
@ -715,6 +715,7 @@ namespace ExtUI {
|
||||
#if HAS_MESH
|
||||
bool getMeshValid() { return leveling_is_valid(); }
|
||||
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)) {
|
||||
Z_VALUES(xpos, ypos) = zoff;
|
||||
@ -748,10 +749,15 @@ namespace ExtUI {
|
||||
enqueue_and_echo_commands_P(gcode);
|
||||
}
|
||||
|
||||
bool commandsInQueue() { return (planner.movesplanned() || commands_in_queue); }
|
||||
|
||||
bool isAxisPositionKnown(const axis_t axis) {
|
||||
return TEST(axis_known_position, axis);
|
||||
}
|
||||
|
||||
bool isPositionKnown() { return all_axes_known(); }
|
||||
bool isMachineHomed() { return all_axes_homed(); }
|
||||
|
||||
PGM_P getFirmwareName_str() {
|
||||
static const char firmware_name[] PROGMEM = "Marlin " SHORT_BUILD_VERSION;
|
||||
return firmware_name;
|
||||
|
@ -58,9 +58,12 @@ namespace ExtUI {
|
||||
|
||||
bool isMoving();
|
||||
bool isAxisPositionKnown(const axis_t);
|
||||
bool isPositionKnown(); // Axis position guaranteed, steppers active since homing
|
||||
bool isMachineHomed(); // Axis position most likely correct, steppers may have deactivated
|
||||
bool canMove(const axis_t);
|
||||
bool canMove(const extruder_t);
|
||||
void enqueueCommands_P(PGM_P const);
|
||||
bool commandsInQueue();
|
||||
|
||||
/**
|
||||
* Getters and setters
|
||||
@ -110,8 +113,10 @@ namespace ExtUI {
|
||||
bool getLevelingActive();
|
||||
void setLevelingActive(const bool);
|
||||
#if HAS_MESH
|
||||
#include "../../feature/bedlevel/bedlevel.h"
|
||||
bool getMeshValid();
|
||||
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);
|
||||
#endif
|
||||
|
@ -25,6 +25,7 @@
|
||||
// These displays all share the MarlinUI class
|
||||
#if HAS_SPI_LCD || EITHER(MALYAN_LCD, EXTENSIBLE_UI)
|
||||
#include "ultralcd.h"
|
||||
#include "fontutils.h"
|
||||
MarlinUI ui;
|
||||
#include "../sd/cardreader.h"
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
|
Reference in New Issue
Block a user