diff --git a/Marlin/src/lcd/e3v2/proui/dwin.cpp b/Marlin/src/lcd/e3v2/proui/dwin.cpp index 2e4047e05f45..34a37da45f64 100644 --- a/Marlin/src/lcd/e3v2/proui/dwin.cpp +++ b/Marlin/src/lcd/e3v2/proui/dwin.cpp @@ -575,6 +575,7 @@ void drawPrintProgressElapsed() { } #if ENABLED(SHOW_REMAINING_TIME) + uint32_t _remain_time = 0; void drawPrintProgressRemain() { MString<12> buf; buf.setf(F("%02i:%02i "), _remain_time / 3600, (_remain_time % 3600) / 60); @@ -1319,7 +1320,6 @@ void eachMomentUpdate() { // Remaining time #if ENABLED(SHOW_REMAINING_TIME) - static uint32_t _remain_time = 0; if (_remain_time != ui.get_remaining_time()) { _remain_time = ui.get_remaining_time(); drawPrintProgressRemain();