mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 22:20:56 +00:00
🩹 Fix progress DOGM compile error (#25319)
This commit is contained in:
parent
64338dfccb
commit
57a7e28145
1 changed files with 6 additions and 2 deletions
|
@ -444,9 +444,12 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare strings for progress display
|
// Prepare strings for progress display
|
||||||
#if HAS_EXTRA_PROGRESS
|
#if EITHER(HAS_EXTRA_PROGRESS, HAS_PRINT_PROGRESS)
|
||||||
static MarlinUI::progress_t progress = 0;
|
static MarlinUI::progress_t progress = 0;
|
||||||
static char bufferc[13];
|
static char bufferc[13];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAS_EXTRA_PROGRESS
|
||||||
|
|
||||||
static void prepare_time_string(const duration_t &time, char prefix) {
|
static void prepare_time_string(const duration_t &time, char prefix) {
|
||||||
char str[13];
|
char str[13];
|
||||||
|
@ -484,7 +487,8 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
|
||||||
if (printJobOngoing())
|
if (printJobOngoing())
|
||||||
prepare_time_string(print_job_timer.duration(), 'E'); }
|
prepare_time_string(print_job_timer.duration(), 'E'); }
|
||||||
#endif
|
#endif
|
||||||
#endif // HAS_PRINT_PROGRESS
|
|
||||||
|
#endif // HAS_EXTRA_PROGRESS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw the Status Screen for a 128x64 DOGM (U8glib) display.
|
* Draw the Status Screen for a 128x64 DOGM (U8glib) display.
|
||||||
|
|
Loading…
Reference in a new issue