Group some sanity checks
This commit is contained in:
parent
bda380513a
commit
785f442c8c
|
@ -254,8 +254,6 @@ static_assert(DISABLED(BAUD_RATE_GCODE), "BAUD_RATE_GCODE is not yet supported o
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
||||||
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
||||||
#endif
|
#elif ENABLED(SERIAL_STATS_DROPPED_RX)
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_DROPPED_RX)
|
|
||||||
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -51,8 +51,6 @@
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
||||||
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
||||||
#endif
|
#elif ENABLED(SERIAL_STATS_DROPPED_RX)
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_DROPPED_RX)
|
|
||||||
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -52,8 +52,6 @@
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
#if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
|
||||||
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
#error "SERIAL_STATS_MAX_RX_QUEUED is not supported on this platform."
|
||||||
#endif
|
#elif ENABLED(SERIAL_STATS_DROPPED_RX)
|
||||||
|
|
||||||
#if ENABLED(SERIAL_STATS_DROPPED_RX)
|
|
||||||
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
#error "SERIAL_STATS_DROPPED_RX is not supported on this platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1520,7 +1520,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifndef STATUS_HOTEND8_TEXT_X
|
#ifndef STATUS_HOTEND8_TEXT_X
|
||||||
#define STATUS_HOTEND8_TEXT_X STATUS_HOTEND7_TEXT_X + STATUS_HEATERS_XSPACE
|
#define STATUS_HOTEND8_TEXT_X STATUS_HOTEND7_TEXT_X + STATUS_HEATERS_XSPACE
|
||||||
#endif
|
#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[] = 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]
|
#define STATUS_HOTEND_TEXT_X(N) status_hotend_text_x[N]
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue