Skip to content

Commit

Permalink
🩹 Fix ProUI _remain_time
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and EvilGremlin committed Oct 26, 2023
1 parent 5522f90 commit dc479da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/e3v2/proui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit dc479da

Please sign in to comment.