Skip to content

Commit a34f320

Browse files
Update - small fixes
remove watchdog, fixes 3% print progress #229 improve auto_confirm on Draw_PrintDone add Version.h to _configs arrange BUTTON_PRESSED
1 parent f4dec75 commit a34f320

File tree

7 files changed

+14
-5
lines changed

7 files changed

+14
-5
lines changed

Marlin/src/lcd/buttons.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@
156156
#define EN_D 0
157157
#endif
158158

159-
#define BUTTON_PRESSED(BN) (_BUTTON_PRESSED_##BN)
160-
161159
#if BUTTON_EXISTS(EN1)
162160
#define _BUTTON_PRESSED_EN1 _BUTTON_PRESSED(EN1)
163161
#else
@@ -204,6 +202,8 @@
204202
#define _BUTTON_PRESSED_BACK false
205203
#endif
206204

205+
#define BUTTON_PRESSED(BN) (_BUTTON_PRESSED_##BN)
206+
207207
#ifndef BUTTON_CLICK
208208
#if EN_C > 0
209209
#define BUTTON_CLICK() (buttons & EN_C)

Marlin/src/lcd/e3v2/proui/dwin.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,14 @@ void Goto_PrintProcess() {
623623
}
624624

625625
void Draw_PrintDone() {
626+
#if ENABLED(PROUI_ITEM_CONF)
627+
if (HMI_data.auto_confirm) {
628+
wait_for_user = false;
629+
select_page.reset();
630+
Goto_Main_Menu();
631+
return;
632+
}
633+
#endif
626634
TERN_(SET_PROGRESS_PERCENT, ui.set_progress_done();)
627635
TERN_(SET_REMAINING_TIME, ui.reset_remaining_time();)
628636
TERN_(SET_INTERACTION_TIME, ui.reset_interaction_time();)

Marlin/src/lcd/e3v2/proui/proui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ typedef struct {
230230
OPTCODE(PROUI_GRID_PNTS, uint8_t grid_max_points = DEF_GRID_MAX_POINTS)
231231
#if HAS_BED_PROBE
232232
IF_DISABLED(BD_SENSOR, uint8_t multiple_probing = MULTIPLE_PROBING;)
233-
uint16_t zprobefeedslow = DEF_Z_PROBE_FEEDRATE_SLOW ;
233+
uint16_t zprobefeedslow = DEF_Z_PROBE_FEEDRATE_SLOW;
234234
#endif
235235
OPTCODE(HAS_EXTRUDERS, bool Invert_E0 = DEF_INVERT_E0_DIR)
236236
#endif

Marlin/src/sd/cardreader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,6 @@ void CardReader::selectFileByIndex(const int16_t nr) {
11251125
#endif
11261126
workDir.rewind();
11271127
selectByIndex(workDir, nr);
1128-
hal.watchdog_refresh(); // Prevent watchdog reset in long listings
11291128
}
11301129

11311130
//

buildroot/bin/restore_configs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ else:
2626
files_to_checkout = [
2727
"Marlin/Configuration.h",
2828
"Marlin/Configuration_adv.h",
29+
"Marlin/Version.h",
2930
"Marlin/config.ini",
3031
"Marlin/src/pins/*/pins_*.h"
3132
]

buildroot/bin/use_example_configs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import os, subprocess, sys, urllib.request, urllib.error
1818
from pathlib import Path
1919

2020
DEBUGGING = False
21-
CONFIG_FILES = ("Configuration.h", "Configuration_adv.h", "_Bootscreen.h", "_Statusscreen.h")
21+
CONFIG_FILES = ("Configuration.h", "Configuration_adv.h", "Version.h", "_Bootscreen.h", "_Statusscreen.h")
2222

2323
def debug_print(s):
2424
if DEBUGGING: print(s)

buildroot/share/PlatformIO/scripts/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def fetch_example(url):
151151
for fn in (
152152
"Configuration.h",
153153
"Configuration_adv.h",
154+
"Version.h",
154155
"_Bootscreen.h",
155156
"_Statusscreen.h"
156157
):

0 commit comments

Comments
 (0)