Tweak MMU beeps, misc. cleanup
This commit is contained in:
parent
82e602c847
commit
4975e93350
|
@ -838,8 +838,7 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
|
|||
|
||||
if (move_axes && all_axes_homed()) {
|
||||
LCD_MESSAGEPGM(MSG_MMU2_RESUMING);
|
||||
BUZZ(200, 404);
|
||||
BUZZ(200, 404);
|
||||
BUZZ(198, 404); BUZZ(4, 0); BUZZ(198, 404);
|
||||
|
||||
// Move XY to starting position, then Z
|
||||
do_blocking_move_to_xy(resume_position, feedRate_t(NOZZLE_PARK_XY_FEEDRATE));
|
||||
|
@ -848,8 +847,7 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
|
|||
do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
|
||||
}
|
||||
else {
|
||||
BUZZ(200, 404);
|
||||
BUZZ(200, 404);
|
||||
BUZZ(198, 404); BUZZ(4, 0); BUZZ(198, 404);
|
||||
LCD_MESSAGEPGM(MSG_MMU2_RESUMING);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
*
|
||||
* M302 ; report current cold extrusion state
|
||||
* M302 P0 ; enable cold extrusion checking
|
||||
* M302 P1 ; disables cold extrusion checking
|
||||
* M302 P1 ; disable cold extrusion checking
|
||||
* M302 S0 ; always allow extrusion (disables checking)
|
||||
* M302 S170 ; only allow extrusion above 170
|
||||
* M302 S170 P1 ; set min extrude temp to 170 but leave disabled
|
||||
|
|
|
@ -98,7 +98,9 @@ void GcodeSuite::M25() {
|
|||
|
||||
print_job_timer.pause();
|
||||
|
||||
TERN(DWIN_CREALITY_LCD,,ui.reset_status());
|
||||
#if DISABLED(DWIN_CREALITY_LCD)
|
||||
ui.reset_status();
|
||||
#endif
|
||||
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
TERN_(HOST_PROMPT_SUPPORT, host_prompt_open(PROMPT_PAUSE_RESUME, PSTR("Pause SD"), PSTR("Resume")));
|
||||
|
|
|
@ -1099,7 +1099,7 @@ void Goto_PrintProcess() {
|
|||
|
||||
// Copy into filebuf string before entry
|
||||
char * const name = card.longest_filename();
|
||||
const int8_t npos = _MAX(0, DWIN_WIDTH - strlen(name) * MENU_CHR_W) / 2;
|
||||
const int8_t npos = _MAX(0U, DWIN_WIDTH - strlen(name) * MENU_CHR_W) / 2;
|
||||
DWIN_Draw_String(false, false, font8x16, Color_White, Color_Bg_Black, npos, 60, name);
|
||||
|
||||
DWIN_ICON_Show(ICON, ICON_PrintTime, 17, 193);
|
||||
|
@ -1787,7 +1787,7 @@ inline void Draw_SDItem(const uint16_t item, int16_t row=-1) {
|
|||
inline void Draw_SDItem_Shifted(int8_t &shift) {
|
||||
// Limit to the number of chars past the cutoff
|
||||
const size_t len = strlen(shift_name);
|
||||
NOMORE(shift, _MAX((signed)len - MENU_CHAR_LIMIT, 0));
|
||||
NOMORE(shift, _MAX(len - MENU_CHAR_LIMIT, 0U));
|
||||
|
||||
// Shorten to the available space
|
||||
const size_t lastchar = _MIN((signed)len, shift + MENU_CHAR_LIMIT);
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#include "../feature/pause.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG_OUT ENABLED(DEBUG_CARDREADER)
|
||||
#define DEBUG_OUT EITHER(DEBUG_CARDREADER, MARLIN_DEV_MODE)
|
||||
#include "../core/debug_out.h"
|
||||
|
||||
// public:
|
||||
|
@ -716,7 +716,7 @@ void CardReader::beginautostart() {
|
|||
cdroot();
|
||||
}
|
||||
|
||||
void CardReader::closefile(const bool store_location) {
|
||||
void CardReader::closefile(const bool store_location/*=false*/) {
|
||||
file.sync();
|
||||
file.close();
|
||||
flag.saving = flag.logging = false;
|
||||
|
|
Loading…
Reference in a new issue