|
|
@ -1425,8 +1425,14 @@ |
|
|
|
#ifndef STATUS_HOTEND6_WIDTH |
|
|
|
#define STATUS_HOTEND6_WIDTH STATUS_HOTEND5_WIDTH |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND7_WIDTH |
|
|
|
#define STATUS_HOTEND7_WIDTH STATUS_HOTEND6_WIDTH |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND8_WIDTH |
|
|
|
#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); |
|
|
|
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 STATUS_HOTEND_WIDTH(N) status_hotend_width[N] |
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_BYTEWIDTH |
|
|
@ -1447,8 +1453,14 @@ |
|
|
|
#ifndef STATUS_HOTEND6_BYTEWIDTH |
|
|
|
#define STATUS_HOTEND6_BYTEWIDTH BW(STATUS_HOTEND6_WIDTH) |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND7_BYTEWIDTH |
|
|
|
#define STATUS_HOTEND7_BYTEWIDTH BW(STATUS_HOTEND7_WIDTH) |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND8_BYTEWIDTH |
|
|
|
#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); |
|
|
|
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); |
|
|
|
#define STATUS_HOTEND_BYTEWIDTH(N) status_hotend_bytewidth[N] |
|
|
|
|
|
|
|
#ifndef STATUS_HOTEND1_X |
|
|
@ -1471,8 +1483,14 @@ |
|
|
|
#ifndef STATUS_HOTEND6_X |
|
|
|
#define STATUS_HOTEND6_X STATUS_HOTEND5_X + STATUS_HEATERS_XSPACE |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND7_X |
|
|
|
#define STATUS_HOTEND7_X STATUS_HOTEND6_X + STATUS_HEATERS_XSPACE |
|
|
|
#endif |
|
|
|
#ifndef STATUS_HOTEND8_X |
|
|
|
#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); |
|
|
|
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); |
|
|
|
#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) |
|
|
@ -1497,7 +1515,13 @@ |
|
|
|
#ifndef STATUS_HOTEND6_TEXT_X |
|
|
|
#define STATUS_HOTEND6_TEXT_X STATUS_HOTEND5_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); |
|
|
|
#ifndef STATUS_HOTEND7_TEXT_X |
|
|
|
#define STATUS_HOTEND7_TEXT_X STATUS_HOTEND6_TEXT_X + STATUS_HEATERS_XSPACE |
|
|
|
#endif |
|
|
|
#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); |
|
|
|
#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)) |
|
|
|