static_assert replaced with error directive

This commit is contained in:
Robert Pelnar 2018-03-13 16:47:38 +01:00
parent 0c97f46f25
commit 16f9f35451

View File

@ -6743,7 +6743,9 @@ void handle_status_leds(void) {
*/ */
static void handleSafetyTimer() static void handleSafetyTimer()
{ {
static_assert(EXTRUDERS == 1,"Implemented only for one extruder."); #if (EXTRUDERS > 1)
#error Implemented only for one extruder.
#endif //(EXTRUDERS > 1)
static Timer safetyTimer; static Timer safetyTimer;
if (IS_SD_PRINTING || is_usb_printing || (custom_message_type == 4) || (lcd_commands_type == LCD_COMMAND_V2_CAL) || if (IS_SD_PRINTING || is_usb_printing || (custom_message_type == 4) || (lcd_commands_type == LCD_COMMAND_V2_CAL) ||
(!degTargetBed() && !degTargetHotend(0))) (!degTargetBed() && !degTargetHotend(0)))