From 16f9f35451970abc0838559d5faf389fdff4c751 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Tue, 13 Mar 2018 16:47:38 +0100 Subject: [PATCH] static_assert replaced with error directive --- Firmware/Marlin_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index f91bf32a..435d5865 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -6743,7 +6743,9 @@ void handle_status_leds(void) { */ 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; if (IS_SD_PRINTING || is_usb_printing || (custom_message_type == 4) || (lcd_commands_type == LCD_COMMAND_V2_CAL) || (!degTargetBed() && !degTargetHotend(0)))