🎨 Clean up TFT Color UI display items (#25712)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Alexey D. Filimonov
2023-04-22 12:06:19 +03:00
committed by GitHub
parent fba1f83855
commit 89ccede139
4 changed files with 33 additions and 50 deletions

View File

@@ -57,32 +57,15 @@ void menu_item(const uint8_t row, bool sel = false);
#define ABSOLUTE_ZERO -273.15
#if HAS_TEMP_CHAMBER && HAS_MULTI_HOTEND
#define ITEM_E0 0
#define ITEM_E1 1
#define ITEM_BED 2
#define ITEM_CHAMBER 3
#define ITEM_FAN 4
#define ITEMS_COUNT 5
#elif HAS_TEMP_CHAMBER
#define ITEM_E0 0
#define ITEM_BED 1
#define ITEM_CHAMBER 2
#define ITEM_FAN 3
#define ITEMS_COUNT 4
#elif HAS_TEMP_COOLER
#define ITEM_COOLER 0
#define ITEM_FAN 1
#define ITEMS_COUNT 2
#elif HAS_MULTI_HOTEND
#define ITEM_E0 0
#define ITEM_E1 1
#define ITEM_BED 2
#define ITEM_FAN 3
#define ITEMS_COUNT 4
#else
#define ITEM_E0 0
#define ITEM_BED 1
#define ITEM_FAN 2
#define ITEMS_COUNT 3
#endif
enum {
OPTITEM(HAS_EXTRUDERS, ITEM_E0)
OPTITEM(HAS_MULTI_HOTEND, ITEM_E1)
#if HOTENDS > 2
ITEM_E2,
#endif
OPTITEM(HAS_HEATED_BED, ITEM_BED)
OPTITEM(HAS_TEMP_CHAMBER, ITEM_CHAMBER)
OPTITEM(HAS_TEMP_COOLER, ITEM_COOLER)
OPTITEM(HAS_FAN, ITEM_FAN)
ITEMS_COUNT
};