From 02a4c53008ae8d3cc7e0fde31c76717b424cb295 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 1 Jul 2023 20:01:45 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20ProUI=20=5Fremain=5Ftime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Followup to #25982 --- Marlin/src/lcd/e3v2/proui/dwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/e3v2/proui/dwin.cpp b/Marlin/src/lcd/e3v2/proui/dwin.cpp index a1354c520acb..3707c4018c6d 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();