Add HAS_HOTEND, etc.
This commit is contained in:
@ -115,7 +115,7 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
|
||||
)
|
||||
.tag(14).button( TMC_HOMING_THRS_POS, GET_TEXT_F(MSG_TMC_HOMING_THRS))
|
||||
.enabled(
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
1
|
||||
#endif
|
||||
)
|
||||
@ -157,7 +157,7 @@ bool AdvancedSettingsMenu::onTouchEnd(uint8_t tag) {
|
||||
case 2: GOTO_SCREEN(ZOffsetScreen); break;
|
||||
#endif
|
||||
case 3: GOTO_SCREEN(StepsScreen); break;
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
case 4: GOTO_SCREEN(NozzleOffsetScreen); break;
|
||||
#endif
|
||||
case 5: GOTO_SCREEN(MaxVelocityScreen); break;
|
||||
|
@ -58,7 +58,7 @@ void AdvancedSettingsMenu::onRedraw(draw_mode_t what) {
|
||||
.tag(4) .button( BTN_POS(1,3), BTN_SIZE(1,1), GET_TEXT_F(MSG_TMC_HOMING_THRS))
|
||||
.tag(5) .button( BTN_POS(1,4), BTN_SIZE(1,1), GET_TEXT_F(MSG_LCD_ENDSTOPS))
|
||||
.enabled(
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
1
|
||||
#endif
|
||||
)
|
||||
@ -105,7 +105,7 @@ bool AdvancedSettingsMenu::onTouchEnd(uint8_t tag) {
|
||||
case 4: GOTO_SCREEN(StepperBumpSensitivityScreen); break;
|
||||
#endif
|
||||
case 5: GOTO_SCREEN(EndstopStatesScreen); break;
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
case 6: GOTO_SCREEN(NozzleOffsetScreen); break;
|
||||
#endif
|
||||
|
||||
|
@ -172,8 +172,8 @@ void ChangeFilamentScreen::onRedraw(draw_mode_t what) {
|
||||
const bool tog3 = screen_data.ChangeFilamentScreen.t_tag == 3;
|
||||
const bool tog4 = screen_data.ChangeFilamentScreen.t_tag == 4;
|
||||
const bool tog10 = screen_data.ChangeFilamentScreen.e_tag == 10;
|
||||
#if HOTENDS > 1
|
||||
const bool tog11 = screen_data.ChangeFilamentScreen.e_tag == 11;
|
||||
#if HAS_MULTI_HOTEND
|
||||
const bool tog11 = screen_data.ChangeFilamentScreen.e_tag == 11;
|
||||
#endif
|
||||
|
||||
#ifdef TOUCH_UI_PORTRAIT
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../config.h"
|
||||
|
||||
#if ENABLED(TOUCH_UI_FTDI_EVE) && HOTENDS > 1
|
||||
#if ENABLED(TOUCH_UI_FTDI_EVE) && HAS_MULTI_HOTEND
|
||||
|
||||
#include "screens.h"
|
||||
|
||||
|
@ -72,7 +72,7 @@ void NudgeNozzleScreen::onRedraw(draw_mode_t what) {
|
||||
w.text_field(0, GET_TEXT_F(MSG_ZPROBE_ZOFFSET), str);
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
format_position(str, getNozzleOffset_mm(X, E1), getNozzleOffset_mm(Y, E1), getNozzleOffset_mm(Z, E1));
|
||||
w.text_field(0, GET_TEXT_F(MSG_OFFSETS_MENU), str);
|
||||
#endif
|
||||
|
@ -68,7 +68,7 @@ SCREEN_TABLE {
|
||||
#if HAS_BED_PROBE
|
||||
DECL_SCREEN(ZOffsetScreen),
|
||||
#endif
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
DECL_SCREEN(NozzleOffsetScreen),
|
||||
#endif
|
||||
#if ENABLED(BACKLASH_GCODE)
|
||||
|
@ -514,7 +514,7 @@ class StepsScreen : public BaseNumericAdjustmentScreen, public CachedScreen<STEP
|
||||
};
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
class NozzleOffsetScreen : public BaseNumericAdjustmentScreen, public CachedScreen<NOZZLE_OFFSET_SCREEN_CACHE> {
|
||||
public:
|
||||
static void onEntry();
|
||||
|
@ -78,7 +78,7 @@ bool TemperatureScreen::onTouchHeld(uint8_t tag) {
|
||||
case 2: UI_DECREMENT(TargetTemp_celsius, E0); break;
|
||||
case 3: UI_INCREMENT(TargetTemp_celsius, E0); break;
|
||||
#endif
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
case 4: UI_DECREMENT(TargetTemp_celsius, E1); break;
|
||||
case 5: UI_INCREMENT(TargetTemp_celsius, E1); break;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user