Исправление постановки на паузу из меню
Исправление POWER_LOSS_RECOVERY
This commit is contained in:
@@ -1197,9 +1197,9 @@
|
||||
* an option on the LCD screen to continue the print from the last-known
|
||||
* point in the file.
|
||||
*/
|
||||
//#define POWER_LOSS_RECOVERY
|
||||
#define POWER_LOSS_RECOVERY
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
|
||||
#define PLR_ENABLED_DEFAULT true // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
|
||||
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
|
||||
//#define POWER_LOSS_RECOVER_ZHOME // Z homing is needed for proper recovery. 99.9% of the time this should be disabled!
|
||||
//#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
|
||||
|
||||
@@ -75,7 +75,8 @@ void GcodeSuite::M125() {
|
||||
|
||||
TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT));
|
||||
|
||||
const bool show_lcd = TERN0(HAS_LCD_MENU, parser.seenval('P'));
|
||||
//Temporary fix, until merge bugfix branch
|
||||
const bool show_lcd = 1; //TERN0(HAS_LCD_MENU, parser.seenval('P'));
|
||||
|
||||
if (pause_print(retract, park_point, 0, show_lcd)) {
|
||||
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
|
||||
|
||||
@@ -662,7 +662,7 @@ bool CardReader::fileExists(const char * const path) {
|
||||
if (fname) {
|
||||
diveDir->rewind();
|
||||
selectByName(*diveDir, fname);
|
||||
diveDir->close();
|
||||
//diveDir->close();
|
||||
}
|
||||
return fname != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user