|
|
|
@ -281,7 +281,9 @@
|
|
|
|
|
#define STATUS_HOTEND8_WIDTH STATUS_HOTEND7_WIDTH
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_width[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_WIDTH, STATUS_HOTEND2_WIDTH, STATUS_HOTEND3_WIDTH, STATUS_HOTEND4_WIDTH, STATUS_HOTEND5_WIDTH, STATUS_HOTEND6_WIDTH, STATUS_HOTEND7_WIDTH, STATUS_HOTEND8_WIDTH);
|
|
|
|
|
#define _SHNAME(N,T) STATUS_HOTEND##N##_##T,
|
|
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_width[HOTENDS] = { REPEAT2_S(1, INCREMENT(HOTENDS), _SHNAME, WIDTH) };
|
|
|
|
|
#define STATUS_HOTEND_WIDTH(N) status_hotend_width[N]
|
|
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_BYTEWIDTH
|
|
|
|
@ -309,7 +311,7 @@
|
|
|
|
|
#define STATUS_HOTEND8_BYTEWIDTH BW(STATUS_HOTEND8_WIDTH)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_bytewidth[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_BYTEWIDTH, STATUS_HOTEND2_BYTEWIDTH, STATUS_HOTEND3_BYTEWIDTH, STATUS_HOTEND4_BYTEWIDTH, STATUS_HOTEND5_BYTEWIDTH, STATUS_HOTEND6_BYTEWIDTH, STATUS_HOTEND7_BYTEWIDTH, STATUS_HOTEND8_BYTEWIDTH);
|
|
|
|
|
constexpr uint8_t status_hotend_bytewidth[HOTENDS] = { REPEAT2_S(1, INCREMENT(HOTENDS), _SHNAME, BYTEWIDTH) };
|
|
|
|
|
#define STATUS_HOTEND_BYTEWIDTH(N) status_hotend_bytewidth[N]
|
|
|
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_X
|
|
|
|
@ -339,7 +341,7 @@
|
|
|
|
|
#define STATUS_HOTEND8_X STATUS_HOTEND7_X + STATUS_HEATERS_XSPACE
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
constexpr uint8_t status_hotend_x[HOTENDS] = ARRAY_N(HOTENDS, STATUS_HOTEND1_X, STATUS_HOTEND2_X, STATUS_HOTEND3_X, STATUS_HOTEND4_X, STATUS_HOTEND5_X, STATUS_HOTEND6_X, STATUS_HOTEND7_X, STATUS_HOTEND8_X);
|
|
|
|
|
constexpr uint8_t status_hotend_x[HOTENDS] = { REPEAT2_S(1, INCREMENT(HOTENDS), _SHNAME, X) };
|
|
|
|
|
#define STATUS_HOTEND_X(N) status_hotend_x[N]
|
|
|
|
|
#elif HAS_MULTI_HOTEND
|
|
|
|
|
#define STATUS_HOTEND_X(N) ((N) ? STATUS_HOTEND2_X : STATUS_HOTEND1_X)
|
|
|
|
@ -370,13 +372,15 @@
|
|
|
|
|
#ifndef STATUS_HOTEND8_TEXT_X
|
|
|
|
|
#define STATUS_HOTEND8_TEXT_X STATUS_HOTEND7_TEXT_X + STATUS_HEATERS_XSPACE
|
|
|
|
|
#endif
|
|
|
|
|
constexpr uint8_t status_hotend_text_x[] = ARRAY_N(HOTENDS, STATUS_HOTEND1_TEXT_X, STATUS_HOTEND2_TEXT_X, STATUS_HOTEND3_TEXT_X, STATUS_HOTEND4_TEXT_X, STATUS_HOTEND5_TEXT_X, STATUS_HOTEND6_TEXT_X, STATUS_HOTEND7_TEXT_X, STATUS_HOTEND8_TEXT_X);
|
|
|
|
|
constexpr uint8_t status_hotend_text_x[HOTENDS] = { REPEAT2_S(1, INCREMENT(HOTENDS), _SHNAME, TEXT_X) };
|
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) status_hotend_text_x[N]
|
|
|
|
|
#else
|
|
|
|
|
#define STATUS_HOTEND_TEXT_X(N) (STATUS_HOTEND1_X + 6 + (N) * (STATUS_HEATERS_XSPACE))
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#undef _SHNAME
|
|
|
|
|
|
|
|
|
|
#if STATUS_HOTEND_BITMAPS > 1 && DISABLED(STATUS_HOTEND_NUMBERLESS)
|
|
|
|
|
#define TEST_BITMAP_OFF status_hotend1_a_bmp
|
|
|
|
|
#define TEST_BITMAP_ON status_hotend1_b_bmp
|
|
|
|
|