Skip to content

Commit

Permalink
Sync with Zr 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adequator committed Nov 13, 2022
1 parent fbcc2fb commit c47971d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1422,8 +1422,8 @@
#endif // HAS_MARLINUI_MENU

#if ANY(HAS_DISPLAY, DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI)
//#define SOUND_MENU_ITEM // Add a mute option to the LCD menu
#define SOUND_ON_DEFAULT // Buzzer/speaker default enabled state
#define SOUND_MENU_ITEM // Add a mute option to the LCD menu
//#define SOUND_ON_DEFAULT // Buzzer/speaker default enabled state
#endif

#if EITHER(HAS_DISPLAY, DWIN_LCD_PROUI)
Expand Down Expand Up @@ -2076,7 +2076,7 @@
#endif
#endif

//#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
//#define BABYSTEP_ZPROBE_OFFSET // Combine M851 Z and Babystepping
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
Expand Down Expand Up @@ -4197,13 +4197,13 @@
/**
* WiFi Support (Espressif ESP32 WiFi)
*/
//#define WIFISUPPORT // Marlin embedded WiFi management
//#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
#define WIFISUPPORT // Marlin embedded WiFi management
#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)

#if EITHER(WIFISUPPORT, ESP3D_WIFISUPPORT)
//#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
//#define OTASUPPORT // Support over-the-air firmware updates
//#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
#define OTASUPPORT // Support over-the-air firmware updates
#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
/**
* To set a default WiFi SSID / Password, create a file called Configuration_Secure.h with
Expand Down
14 changes: 10 additions & 4 deletions Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void startOrResumeJob() {
TERN_(GCODE_REPEAT_MARKERS, repeat.reset());
TERN_(CANCEL_OBJECTS, cancelable.reset());
TERN_(LCD_SHOW_E_TOTAL, e_move_accumulator = 0);
#if ENABLED(SET_REMAINING_TIME)
#if BOTH(LCD_SET_PROGRESS_MANUALLY, USE_M73_REMAINING_TIME)
ui.reset_remaining_time();
#endif
}
Expand Down Expand Up @@ -385,6 +385,11 @@ void startOrResumeJob() {
marlin_state = MF_RUNNING; // Signal to stop trying
TERN_(PASSWORD_AFTER_SD_PRINT_END, password.lock_machine());
TERN_(DGUS_LCD_UI_MKS, ScreenHandler.SDPrintingFinished());
buzzer.tick();
delay(200);
buzzer.tick();
delay(200);
buzzer.tick();
}
}

Expand Down Expand Up @@ -488,7 +493,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
}
#endif

#if ENABLED(FREEZE_FEATURE)
#if HAS_FREEZE_PIN
stepper.frozen = READ(FREEZE_PIN) == FREEZE_STATE;
#endif

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

// Update the Beeper queue
TERN_(HAS_BEEPER, buzzer.tick());

if (MarlinUI::sound_on) {
TERN_(HAS_BEEPER, buzzer.tick());
}
// Handle UI input / draw events
TERN(DWIN_CREALITY_LCD, DWIN_Update(), ui.update());

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/marlinui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ void MarlinUI::init() {
chirp(); // Buzz and wait. Is the delay needed for buttons to settle?

#if HAS_CHIRP && HAS_MARLINUI_MENU
#if HAS_BEEPER
#if HAS_BEEPER && ENABLED(SPEAKER)
for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
#else
delay(10);
Expand Down

0 comments on commit c47971d

Please sign in to comment.