mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 05:48:43 +00:00
parent
953d283e53
commit
453e60958a
@ -145,7 +145,9 @@ ENCODER_DiffState Encoder_ReceiveAnalyze() {
|
||||
const float encoderStepRate = encoderMovementSteps / float(ms - EncoderRate.lastEncoderTime) * 1000;
|
||||
if (encoderStepRate >= ENCODER_100X_STEPS_PER_SEC) encoderMultiplier = 100;
|
||||
else if (encoderStepRate >= ENCODER_10X_STEPS_PER_SEC) encoderMultiplier = 10;
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#if ENCODER_5X_STEPS_PER_SEC
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#endif
|
||||
}
|
||||
EncoderRate.lastEncoderTime = ms;
|
||||
}
|
||||
|
@ -145,7 +145,9 @@ ENCODER_DiffState Encoder_ReceiveAnalyze() {
|
||||
const float encoderStepRate = encoderMovementSteps / float(ms - EncoderRate.lastEncoderTime) * 1000;
|
||||
if (encoderStepRate >= ENCODER_100X_STEPS_PER_SEC) encoderMultiplier = 100;
|
||||
else if (encoderStepRate >= ENCODER_10X_STEPS_PER_SEC) encoderMultiplier = 10;
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#if ENCODER_5X_STEPS_PER_SEC
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#endif
|
||||
}
|
||||
EncoderRate.lastEncoderTime = ms;
|
||||
}
|
||||
|
@ -4757,11 +4757,13 @@ void CrealityDWINClass::Start_Print(bool sd) {
|
||||
printing = true;
|
||||
statusmsg[0] = '\0';
|
||||
if (sd) {
|
||||
if (recovery.valid()) {
|
||||
SdFile *diveDir = nullptr;
|
||||
const char * const fname = card.diveToFile(true, diveDir, recovery.info.sd_filename);
|
||||
card.selectFileByName(fname);
|
||||
}
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
if (recovery.valid()) {
|
||||
SdFile *diveDir = nullptr;
|
||||
const char * const fname = card.diveToFile(true, diveDir, recovery.info.sd_filename);
|
||||
card.selectFileByName(fname);
|
||||
}
|
||||
#endif
|
||||
strcpy_P(filename, card.longest_filename());
|
||||
}
|
||||
else
|
||||
@ -4801,7 +4803,7 @@ void MarlinUI::update() { CrealityDWIN.Update(); }
|
||||
|
||||
void CrealityDWINClass::State_Update() {
|
||||
if ((print_job_timer.isRunning() || print_job_timer.isPaused()) != printing) {
|
||||
if (!printing) Start_Print((card.isFileOpen() || recovery.valid()));
|
||||
if (!printing) Start_Print(card.isFileOpen() || TERN0(POWER_LOSS_RECOVERY, recovery.valid()));
|
||||
else Stop_Print();
|
||||
}
|
||||
if (print_job_timer.isPaused() != paused) {
|
||||
|
@ -145,7 +145,9 @@ ENCODER_DiffState Encoder_ReceiveAnalyze() {
|
||||
const float encoderStepRate = encoderMovementSteps / float(ms - EncoderRate.lastEncoderTime) * 1000;
|
||||
if (encoderStepRate >= ENCODER_100X_STEPS_PER_SEC) encoderMultiplier = 100;
|
||||
else if (encoderStepRate >= ENCODER_10X_STEPS_PER_SEC) encoderMultiplier = 10;
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#if ENCODER_5X_STEPS_PER_SEC
|
||||
else if (encoderStepRate >= ENCODER_5X_STEPS_PER_SEC) encoderMultiplier = 5;
|
||||
#endif
|
||||
}
|
||||
EncoderRate.lastEncoderTime = ms;
|
||||
}
|
||||
|
@ -596,7 +596,7 @@ public:
|
||||
static inline bool use_click() { return false; }
|
||||
#endif
|
||||
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE) && ANY(HAS_LCD_MENU, EXTENSIBLE_UI, HAS_DWIN_E3V2)
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE) && ANY(HAS_LCD_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
|
||||
static void pause_show_message(const PauseMessage message, const PauseMode mode=PAUSE_MODE_SAME, const uint8_t extruder=active_extruder);
|
||||
#else
|
||||
static inline void _pause_show_message() {}
|
||||
|
Loading…
Reference in New Issue
Block a user