Move some MarlinCore and MarlinUI code (#20832)
This commit is contained in:
@ -161,6 +161,8 @@ void menu_advanced_settings();
|
||||
#include "../../module/motion.h"
|
||||
#include "../../gcode/queue.h"
|
||||
|
||||
extern const char G28_STR[];
|
||||
|
||||
void menu_tool_offsets() {
|
||||
|
||||
auto _recalc_offsets = []{
|
||||
|
@ -53,6 +53,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
|
||||
|
||||
#if ENABLED(DELTA_AUTO_CALIBRATION)
|
||||
|
||||
#include "../../MarlinCore.h" // for wait_for_user_response()
|
||||
#include "../../gcode/gcode.h"
|
||||
|
||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||
@ -81,6 +82,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
|
||||
}
|
||||
|
||||
void _lcd_delta_calibrate_home() {
|
||||
extern const char G28_STR[];
|
||||
queue.inject_P(G28_STR);
|
||||
ui.goto_screen(_lcd_calibrate_homing);
|
||||
}
|
||||
|
@ -107,6 +107,8 @@ void _menu_temp_filament_op(const PauseMode mode, const int8_t extruder) {
|
||||
*/
|
||||
#if E_STEPPERS > 1 || ENABLED(FILAMENT_LOAD_UNLOAD_GCODES)
|
||||
|
||||
bool printingIsPaused();
|
||||
|
||||
void menu_change_filament() {
|
||||
// Say "filament change" when no print is active
|
||||
editable.int8 = printingIsPaused() ? PAUSE_MODE_PAUSE_PRINT : PAUSE_MODE_CHANGE_FILAMENT;
|
||||
@ -315,7 +317,7 @@ FORCE_INLINE screenFunc_t ap_message_screen(const PauseMessage message) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void lcd_pause_show_message(
|
||||
void MarlinUI::pause_show_message(
|
||||
const PauseMessage message,
|
||||
const PauseMode mode/*=PAUSE_MODE_SAME*/,
|
||||
const uint8_t extruder/*=active_extruder*/
|
||||
|
@ -51,6 +51,8 @@
|
||||
float manual_move_e_origin = 0;
|
||||
#endif
|
||||
|
||||
extern const char G28_STR[];
|
||||
|
||||
//
|
||||
// "Motion" > "Move Axis" submenu
|
||||
//
|
||||
|
Reference in New Issue
Block a user