0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-19 16:16:13 +00:00

🩹 Fix progress DOGM compile error (#25319)

This commit is contained in:
Bob Kuhn 2023-02-01 02:43:06 -06:00 committed by Scott Lahteine
parent 64338dfccb
commit 57a7e28145

View file

@ -444,9 +444,12 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
}
// Prepare strings for progress display
#if HAS_EXTRA_PROGRESS
#if EITHER(HAS_EXTRA_PROGRESS, HAS_PRINT_PROGRESS)
static MarlinUI::progress_t progress = 0;
static char bufferc[13];
#endif
#if HAS_EXTRA_PROGRESS
static void prepare_time_string(const duration_t &time, char prefix) {
char str[13];
@ -484,7 +487,8 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
if (printJobOngoing())
prepare_time_string(print_job_timer.duration(), 'E'); }
#endif
#endif // HAS_PRINT_PROGRESS
#endif // HAS_EXTRA_PROGRESS
/**
* Draw the Status Screen for a 128x64 DOGM (U8glib) display.