diff --git a/Marlin/src/lcd/extensible_ui/ui_api.cpp b/Marlin/src/lcd/extensible_ui/ui_api.cpp index 7165b5eefa..1cbd9b007a 100644 --- a/Marlin/src/lcd/extensible_ui/ui_api.cpp +++ b/Marlin/src/lcd/extensible_ui/ui_api.cpp @@ -51,9 +51,14 @@ #include "../../module/planner.h" #include "../../module/probe.h" #include "../../module/temperature.h" +#include "../../module/printcounter.h" #include "../../libs/duration_t.h" #include "../../HAL/shared/Delay.h" +#if ENABLED(PRINTCOUNTER) + #include "../../core/utility.h" +#endif + #if DO_SWITCH_EXTRUDER || ENABLED(SWITCHING_NOZZLE) || ENABLED(PARKING_EXTRUDER) #include "../../module/tool_change.h" #endif @@ -69,11 +74,6 @@ #define IFSD(A,B) (B) #endif -#if ENABLED(PRINTCOUNTER) - #include "../../core/utility.h" - #include "../../module/printcounter.h" -#endif - #if HAS_TRINAMIC && HAS_LCD_MENU #include "../../feature/tmc_util.h" #endif