Shorter paths to HAL, ExtUI (#17156)
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
#include "../../../core/debug_out.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
xy_pos_t bilinear_grid_spacing, bilinear_start;
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include "../../core/debug_out.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
bool leveling_is_valid() {
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "../../../module/motion.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
mesh_bed_leveling mbl;
|
||||
|
@ -37,7 +37,7 @@
|
||||
#include "../../../module/probe.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#include "math.h"
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include "../../../core/debug_out.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#if ENABLED(EMERGENCY_PARSER)
|
||||
|
||||
#include "emergency_parser.h"
|
||||
#include "e_parser.h"
|
||||
|
||||
// Static data members
|
||||
bool EmergencyParser::killed_by_M112, // = false
|
@ -75,6 +75,7 @@ public:
|
||||
FORCE_INLINE static void disable() { enabled = false; }
|
||||
|
||||
FORCE_INLINE static void update(State &state, const uint8_t c) {
|
||||
#define ISEOL(C) ((C) == '\n' || (C) == '\r')
|
||||
switch (state) {
|
||||
case EP_RESET:
|
||||
switch (c) {
|
||||
@ -164,11 +165,11 @@ public:
|
||||
#endif
|
||||
|
||||
case EP_IGNORE:
|
||||
if (c == '\n' || c == '\r') state = EP_RESET;
|
||||
if (ISEOL(c)) state = EP_RESET;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (c == '\n' || c == '\r') {
|
||||
if (ISEOL(c)) {
|
||||
if (enabled) switch (state) {
|
||||
case EP_M108: wait_for_user = wait_for_heatup = false; break;
|
||||
case EP_M112: killed_by_M112 = true; break;
|
@ -32,7 +32,7 @@
|
||||
|
||||
#if ENABLED(I2C_POSITION_ENCODERS)
|
||||
|
||||
#include "I2CPositionEncoder.h"
|
||||
#include "encoder_i2c.h"
|
||||
|
||||
#include "../module/temperature.h"
|
||||
#include "../module/stepper.h"
|
@ -37,7 +37,7 @@
|
||||
Joystick joystick;
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../lcd/extensible_ui/ui_api.h"
|
||||
#include "../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#if HAS_JOY_ADC_X
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
#define MAX7219_ERRORS // Disable to save 406 bytes of Program Memory
|
||||
|
||||
#include "Max7219_Debug_LEDs.h"
|
||||
#include "max7219.h"
|
||||
|
||||
#include "../module/planner.h"
|
||||
#include "../module/stepper.h"
|
@ -43,7 +43,7 @@ MMU2 mmu2;
|
||||
#endif
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../lcd/extensible_ui/ui_api.h"
|
||||
#include "../../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG_OUT ENABLED(MMU2_DEBUG)
|
@ -50,7 +50,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../lcd/extensible_ui/ui_api.h"
|
||||
#include "../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#include "../core/language.h"
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
|
||||
#include "power_loss_recovery.h"
|
||||
#include "powerloss.h"
|
||||
#include "../core/macros.h"
|
||||
|
||||
bool PrintJobRecovery::enabled; // Initialized by settings.load()
|
@ -24,7 +24,7 @@
|
||||
|
||||
#if ENABLED(PROBE_TEMP_COMPENSATION)
|
||||
|
||||
#include "probe_temp_compensation.h"
|
||||
#include "probe_temp_comp.h"
|
||||
#include <math.h>
|
||||
|
||||
ProbeTempComp temp_comp;
|
@ -69,7 +69,7 @@ void FilamentSensorBase::filament_present(const uint8_t extruder) {
|
||||
#endif
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../lcd/extensible_ui/ui_api.h"
|
||||
#include "../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
void event_filament_runout() {
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../lcd/extensible_ui/ui_api.h"
|
||||
#include "../lcd/extui/ui_api.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
|
Reference in New Issue
Block a user