elapsed time overflow warning fix

tried to fix it with snprintf in libs/duration_t.h but its worst... :/
This commit is contained in:
Tanguy Pruvot 2019-10-14 19:43:41 +02:00
parent b4f82d1081
commit 21867c7fef

View file

@ -345,7 +345,7 @@ void MarlinUI::draw_status_screen() {
static char progress_string[5]; static char progress_string[5];
#endif #endif
static uint8_t lastElapsed = 0, elapsed_x_pos = 0; static uint8_t lastElapsed = 0, elapsed_x_pos = 0;
static char elapsed_string[10]; static char elapsed_string[22];
#if ENABLED(SHOW_REMAINING_TIME) #if ENABLED(SHOW_REMAINING_TIME)
#define SHOW_REMAINING_TIME_PREFIX 'E' #define SHOW_REMAINING_TIME_PREFIX 'E'
static uint8_t estimation_x_pos = 0; static uint8_t estimation_x_pos = 0;