Skip to content

Commit 57a7e28

Browse files
Bob-the-Kuhnthinkyhead
authored andcommitted
🩹 Fix progress DOGM compile error (MarlinFirmware#25319)
1 parent 64338df commit 57a7e28

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,12 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
444444
}
445445

446446
// Prepare strings for progress display
447-
#if HAS_EXTRA_PROGRESS
447+
#if EITHER(HAS_EXTRA_PROGRESS, HAS_PRINT_PROGRESS)
448448
static MarlinUI::progress_t progress = 0;
449449
static char bufferc[13];
450+
#endif
451+
452+
#if HAS_EXTRA_PROGRESS
450453

451454
static void prepare_time_string(const duration_t &time, char prefix) {
452455
char str[13];
@@ -484,7 +487,8 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
484487
if (printJobOngoing())
485488
prepare_time_string(print_job_timer.duration(), 'E'); }
486489
#endif
487-
#endif // HAS_PRINT_PROGRESS
490+
491+
#endif // HAS_EXTRA_PROGRESS
488492

489493
/**
490494
* Draw the Status Screen for a 128x64 DOGM (U8glib) display.

0 commit comments

Comments
 (0)