Skip to content

Commit

Permalink
add additional times to define variables
Browse files Browse the repository at this point in the history
 progress and bufferc need to be available when either condition is true
  • Loading branch information
Bob-the-Kuhn committed Jan 30, 2023
1 parent 90bea80 commit d75bd71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Marlin/src/lcd/dogm/status_screen_DOGM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d75bd71

Please sign in to comment.