Fix compilation with ADVANCED_PAUSE_FEATURE without SDSUPPORT (#7412)

* Fix compilation of ADVANCED_PAUSE_FEATURE without SDSUPPORT

* Fix Identation

* Make use of IS_SD_PRINTING macro

as per @MagoKimbra
This commit is contained in:
Florian Heilmann 2017-08-05 09:58:38 +02:00 committed by Scott Lahteine
parent 8b97da0e3d
commit 0fd2923a9f

View File

@ -2412,7 +2412,7 @@ void kill_screen(const char* lcd_msg) {
// Change filament // Change filament
// //
#if ENABLED(ADVANCED_PAUSE_FEATURE) #if ENABLED(ADVANCED_PAUSE_FEATURE)
if (!thermalManager.tooColdToExtrude(active_extruder) && !card.sdprinting) if (!thermalManager.tooColdToExtrude(active_extruder) && !IS_SD_PRINTING)
MENU_ITEM(function, MSG_FILAMENTCHANGE, lcd_enqueue_filament_change); MENU_ITEM(function, MSG_FILAMENTCHANGE, lcd_enqueue_filament_change);
#endif #endif