Show filename after SD print finished

This commit is contained in:
3d-gussner 2024-12-05 09:13:26 +01:00
parent d3f95592c1
commit b9eaa95ce1
14 changed files with 91 additions and 1 deletions

View File

@ -670,7 +670,9 @@ void get_command()
sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes);
SERIAL_ECHO_START;
SERIAL_ECHOLN(time);
#ifndef SHOW_FILENAME_AFTER_FINISH
lcd_setstatus(time);
#endif //SHOW_FILENAME_AFTER_FINISH
card.printingHasFinished();
card.checkautostart(true);

View File

@ -542,10 +542,14 @@ void lcdui_print_status_line(void) {
break;
}
}
else if ((IS_SD_PRINTING) &&
else if (((IS_SD_PRINTING) &&
(custom_message_type == CustomMsg::Status) &&
(lcd_status_message_level <= LCD_STATUS_INFO) &&
lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
#ifdef SHOW_FILENAME_AFTER_FINISH
|| (GetPrinterState() == PrinterState::SDPrintingFinished)
#endif //SHOW_FILENAME_AFTER_FINISH
)
{
// If printing from SD, show what we are printing
const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename);

View File

@ -520,4 +520,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -524,4 +524,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -528,4 +528,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -529,4 +529,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -687,4 +687,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -688,4 +688,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -690,4 +690,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -699,4 +699,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -700,4 +700,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -702,4 +702,11 @@
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -430,4 +430,11 @@ THERMISTORS SETTINGS
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H

View File

@ -429,4 +429,11 @@ THERMISTORS SETTINGS
#define DEFAULT_MIN_ARC_SEGMENTS 20 // The enforced minimum segments in a full circle of the same radius. Set to 0 to disable
#define DEFAULT_ARC_SEGMENTS_PER_SEC 0 // Use feedrate to choose segment length. Set to 0 to disable
/*------------------------------------
COMMUNITY FEATURES
*------------------------------------*/
//Show filename instead of print time after SD card print finished
//#define SHOW_FILENAME_AFTER_FINISH
#endif //__CONFIGURATION_PRUSA_H