Skip to content

Commit c47971d

Browse files
committed
Sync with Zr 1.3.1
1 parent fbcc2fb commit c47971d

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

Marlin/Configuration_adv.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,8 @@
14221422
#endif // HAS_MARLINUI_MENU
14231423

14241424
#if ANY(HAS_DISPLAY, DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI)
1425-
//#define SOUND_MENU_ITEM // Add a mute option to the LCD menu
1426-
#define SOUND_ON_DEFAULT // Buzzer/speaker default enabled state
1425+
#define SOUND_MENU_ITEM // Add a mute option to the LCD menu
1426+
//#define SOUND_ON_DEFAULT // Buzzer/speaker default enabled state
14271427
#endif
14281428

14291429
#if EITHER(HAS_DISPLAY, DWIN_LCD_PROUI)
@@ -2076,7 +2076,7 @@
20762076
#endif
20772077
#endif
20782078

2079-
//#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
2079+
#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
20802080

20812081
//#define BABYSTEP_ZPROBE_OFFSET // Combine M851 Z and Babystepping
20822082
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
@@ -4197,13 +4197,13 @@
41974197
/**
41984198
* WiFi Support (Espressif ESP32 WiFi)
41994199
*/
4200-
//#define WIFISUPPORT // Marlin embedded WiFi management
4201-
//#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
4200+
#define WIFISUPPORT // Marlin embedded WiFi management
4201+
#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
42024202

42034203
#if EITHER(WIFISUPPORT, ESP3D_WIFISUPPORT)
4204-
//#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
4205-
//#define OTASUPPORT // Support over-the-air firmware updates
4206-
//#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
4204+
#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
4205+
#define OTASUPPORT // Support over-the-air firmware updates
4206+
#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
42074207

42084208
/**
42094209
* To set a default WiFi SSID / Password, create a file called Configuration_Secure.h with

Marlin/src/MarlinCore.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void startOrResumeJob() {
347347
TERN_(GCODE_REPEAT_MARKERS, repeat.reset());
348348
TERN_(CANCEL_OBJECTS, cancelable.reset());
349349
TERN_(LCD_SHOW_E_TOTAL, e_move_accumulator = 0);
350-
#if ENABLED(SET_REMAINING_TIME)
350+
#if BOTH(LCD_SET_PROGRESS_MANUALLY, USE_M73_REMAINING_TIME)
351351
ui.reset_remaining_time();
352352
#endif
353353
}
@@ -385,6 +385,11 @@ void startOrResumeJob() {
385385
marlin_state = MF_RUNNING; // Signal to stop trying
386386
TERN_(PASSWORD_AFTER_SD_PRINT_END, password.lock_machine());
387387
TERN_(DGUS_LCD_UI_MKS, ScreenHandler.SDPrintingFinished());
388+
buzzer.tick();
389+
delay(200);
390+
buzzer.tick();
391+
delay(200);
392+
buzzer.tick();
388393
}
389394
}
390395

@@ -488,7 +493,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
488493
}
489494
#endif
490495

491-
#if ENABLED(FREEZE_FEATURE)
496+
#if HAS_FREEZE_PIN
492497
stepper.frozen = READ(FREEZE_PIN) == FREEZE_STATE;
493498
#endif
494499

@@ -837,8 +842,9 @@ void idle(bool no_stepper_sleep/*=false*/) {
837842
TERN_(PRINTCOUNTER, print_job_timer.tick());
838843

839844
// Update the Beeper queue
840-
TERN_(HAS_BEEPER, buzzer.tick());
841-
845+
if (MarlinUI::sound_on) {
846+
TERN_(HAS_BEEPER, buzzer.tick());
847+
}
842848
// Handle UI input / draw events
843849
TERN(DWIN_CREALITY_LCD, DWIN_Update(), ui.update());
844850

Marlin/src/lcd/marlinui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ void MarlinUI::init() {
748748
chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
749749

750750
#if HAS_CHIRP && HAS_MARLINUI_MENU
751-
#if HAS_BEEPER
751+
#if HAS_BEEPER && ENABLED(SPEAKER)
752752
for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
753753
#else
754754
delay(10);

0 commit comments

Comments
 (0)