🎨 Check flags without ENABLED
This commit is contained in:
@ -307,7 +307,7 @@ void unified_bed_leveling::G29() {
|
||||
|
||||
const uint8_t p_val = parser.byteval('P');
|
||||
const bool may_move = p_val == 1 || p_val == 2 || p_val == 4 || parser.seen_test('J');
|
||||
#if ENABLED(HAS_MULTI_HOTEND)
|
||||
#if HAS_MULTI_HOTEND
|
||||
const uint8_t old_tool_index = active_extruder;
|
||||
#endif
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
||||
#if HAS_MOTOR_CURRENT_DAC
|
||||
|
||||
#include "dac_mcp4728.h"
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
||||
#if HAS_MOTOR_CURRENT_DAC
|
||||
|
||||
#include "stepper_dac.h"
|
||||
#include "../../MarlinCore.h" // for SP_X_LBL...
|
||||
|
@ -32,13 +32,13 @@
|
||||
class Joystick {
|
||||
friend class Temperature;
|
||||
private:
|
||||
#if ENABLED(HAS_JOY_ADC_X)
|
||||
#if HAS_JOY_ADC_X
|
||||
static temp_info_t x;
|
||||
#endif
|
||||
#if ENABLED(HAS_JOY_ADC_Y)
|
||||
#if HAS_JOY_ADC_Y
|
||||
static temp_info_t y;
|
||||
#endif
|
||||
#if ENABLED(HAS_JOY_ADC_Z)
|
||||
#if HAS_JOY_ADC_Z
|
||||
static temp_info_t z;
|
||||
#endif
|
||||
public:
|
||||
|
@ -64,13 +64,13 @@ typedef struct {
|
||||
Repeat stored_repeat;
|
||||
#endif
|
||||
|
||||
#if ENABLED(HAS_HOME_OFFSET)
|
||||
#if HAS_HOME_OFFSET
|
||||
xyz_pos_t home_offset;
|
||||
#endif
|
||||
#if ENABLED(HAS_POSITION_SHIFT)
|
||||
#if HAS_POSITION_SHIFT
|
||||
xyz_pos_t position_shift;
|
||||
#endif
|
||||
#if ENABLED(HAS_MULTI_EXTRUDER)
|
||||
#if HAS_MULTI_EXTRUDER
|
||||
uint8_t active_extruder;
|
||||
#endif
|
||||
|
||||
@ -78,13 +78,13 @@ typedef struct {
|
||||
float filament_size[EXTRUDERS];
|
||||
#endif
|
||||
|
||||
#if ENABLED(HAS_HOTEND)
|
||||
#if HAS_HOTEND
|
||||
celsius_t target_temperature[HOTENDS];
|
||||
#endif
|
||||
#if ENABLED(HAS_HEATED_BED)
|
||||
#if HAS_HEATED_BED
|
||||
celsius_t target_temperature_bed;
|
||||
#endif
|
||||
#if ENABLED(HAS_FAN)
|
||||
#if HAS_FAN
|
||||
uint8_t fan_speed[FAN_COUNT];
|
||||
#endif
|
||||
|
||||
|
@ -363,7 +363,7 @@ void test_tmc_connection(LOGICAL_AXIS_DECL(const bool, true));
|
||||
|
||||
struct motion_state_t {
|
||||
xy_ulong_t acceleration;
|
||||
#if ENABLED(HAS_CLASSIC_JERK)
|
||||
#if HAS_CLASSIC_JERK
|
||||
xy_float_t jerk_state;
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user