Service interval watchdog (#13105)
This commit is contained in:
parent
7f1b69b0c8
commit
e56c13670d
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2219,6 +2219,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2215,6 +2215,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2221,6 +2221,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2215,6 +2215,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2224,6 +2224,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2219,6 +2219,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2215,6 +2215,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2224,6 +2224,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2220,6 +2220,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2231,6 +2231,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2226,6 +2226,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2202,6 +2202,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2224,6 +2224,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2229,6 +2229,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2219,6 +2219,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2206,6 +2206,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2218,6 +2218,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2216,6 +2216,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -2217,6 +2217,20 @@
|
|||
|
||||
#endif // PRUSA_MMU2
|
||||
|
||||
/**
|
||||
* Advanced Print Counter settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#define SERVICE_WARNING_BUZZES 3
|
||||
// Activate up to 3 service interval watchdogs
|
||||
//#define SERVICE_NAME_1 "Service S"
|
||||
//#define SERVICE_INTERVAL_1 100 // print hours
|
||||
//#define SERVICE_NAME_2 "Service L"
|
||||
//#define SERVICE_INTERVAL_2 200 // print hours
|
||||
//#define SERVICE_NAME_3 "Service 3"
|
||||
//#define SERVICE_INTERVAL_3 1 // print hours
|
||||
#endif
|
||||
|
||||
// @section develop
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "../gcode.h"
|
||||
#include "../../module/printcounter.h"
|
||||
#include "../../lcd/ultralcd.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../lcd/extensible_ui/ui_api.h"
|
||||
|
@ -63,10 +64,21 @@ void GcodeSuite::M77() {
|
|||
* M78: Show print statistics
|
||||
*/
|
||||
void GcodeSuite::M78() {
|
||||
if (parser.intval('S') == 78) // "M78 S78" will reset the statistics
|
||||
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
||||
print_job_timer.initStats();
|
||||
else
|
||||
print_job_timer.showStats();
|
||||
ui.reset_status();
|
||||
return;
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
if (parser.seenval('R')) {
|
||||
print_job_timer.resetServiceInterval(parser.value_int());
|
||||
ui.reset_status();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
print_job_timer.showStats();
|
||||
}
|
||||
|
||||
#endif // PRINTCOUNTER
|
||||
|
|
|
@ -527,6 +527,7 @@
|
|||
#define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(PCA9533) || ENABLED(NEOPIXEL_LED))
|
||||
#define HAS_LEDS_OFF_FLAG (ENABLED(PRINTER_EVENT_LEDS) && ENABLED(SDSUPPORT) && HAS_RESUME_CONTINUE)
|
||||
#define HAS_PRINT_PROGRESS (ENABLED(SDSUPPORT) || ENABLED(LCD_SET_PROGRESS_MANUALLY))
|
||||
#define HAS_SERVICE_INTERVALS (SERVICE_INTERVAL_1 > 0 || SERVICE_INTERVAL_2 > 0 || SERVICE_INTERVAL_3 > 0)
|
||||
|
||||
#define Z_MULTI_STEPPER_DRIVERS (ENABLED(Z_DUAL_STEPPER_DRIVERS) || ENABLED(Z_TRIPLE_STEPPER_DRIVERS))
|
||||
#define Z_MULTI_ENDSTOPS (ENABLED(Z_DUAL_ENDSTOPS) || ENABLED(Z_TRIPLE_ENDSTOPS))
|
||||
|
|
|
@ -2085,3 +2085,16 @@ static_assert(sanity_arr_3[0] > 0 && sanity_arr_3[1] > 0 && sanity_arr_3[2] > 0
|
|||
static_assert(NULL == strstr(MMU2_FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with PRUSA_MMU2.");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Advanced PRINTCOUNTER settings
|
||||
*/
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
#if defined(SERVICE_INTERVAL_1) != defined(SERVICE_NAME_1)
|
||||
#error "Both SERVICE_NAME_1 and SERVICE_INTERVAL_1 are required."
|
||||
#elif defined(SERVICE_INTERVAL_2) != defined(SERVICE_NAME_2)
|
||||
#error "Both SERVICE_NAME_2 and SERVICE_INTERVAL_2 are required."
|
||||
#elif defined(SERVICE_INTERVAL_3) != defined(SERVICE_NAME_3)
|
||||
#error "Both SERVICE_NAME_3 and SERVICE_INTERVAL_3 are required."
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1358,3 +1358,7 @@
|
|||
#ifndef MSG_TMC_STEALTH_ENABLED
|
||||
#define MSG_TMC_STEALTH_ENABLED _UxGT("StealthChop enabled")
|
||||
#endif
|
||||
|
||||
#ifndef MSG_SERVICE_RESET
|
||||
#define MSG_SERVICE_RESET _UxGT("Reset")
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
// #include "../../feature/bedlevel/bedlevel.h"
|
||||
// #endif
|
||||
|
||||
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
|
||||
#include "../../module/printcounter.h"
|
||||
|
@ -59,18 +58,38 @@
|
|||
duration_t elapsed = stats.printTime;
|
||||
elapsed.toString(buffer);
|
||||
|
||||
STATIC_ITEM(MSG_INFO_PRINT_TIME ": ", false, false); // Total print Time:
|
||||
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
||||
STATIC_ITEM(MSG_INFO_PRINT_TIME ":", false, false); // Total print Time:
|
||||
STATIC_ITEM("> ", false, false, buffer); // > 99y 364d 23h 59m 59s
|
||||
|
||||
elapsed = stats.longestPrint;
|
||||
elapsed.toString(buffer);
|
||||
|
||||
STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time:
|
||||
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
||||
STATIC_ITEM(MSG_INFO_PRINT_LONGEST ":", false, false); // Longest job time:
|
||||
STATIC_ITEM("> ", false, false, buffer); // > 99y 364d 23h 59m 59s
|
||||
|
||||
sprintf_P(buffer, PSTR("%ld.%im"), long(stats.filamentUsed / 1000), int16_t(stats.filamentUsed / 100) % 10);
|
||||
STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ": ", false, false); // Extruded total:
|
||||
STATIC_ITEM("", false, false, buffer); // 125m
|
||||
STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ":", false, false); // Extruded total:
|
||||
STATIC_ITEM("> ", false, false, buffer); // > 125m
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
elapsed = stats.nextService1;
|
||||
elapsed.toString(buffer);
|
||||
STATIC_ITEM(SERVICE_NAME_1 " in:", false, false); // Service X in:
|
||||
STATIC_ITEM("> ", false, false, buffer); // > 7d 12h 11m 10s
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
elapsed = stats.nextService2;
|
||||
elapsed.toString(buffer);
|
||||
STATIC_ITEM(SERVICE_NAME_2 " in:", false, false);
|
||||
STATIC_ITEM("> ", false, false, buffer);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
elapsed = stats.nextService3;
|
||||
elapsed.toString(buffer);
|
||||
STATIC_ITEM(SERVICE_NAME_3 " in:", false, false);
|
||||
STATIC_ITEM("> ", false, false, buffer);
|
||||
#endif
|
||||
|
||||
END_SCREEN();
|
||||
}
|
||||
|
||||
|
|
|
@ -115,6 +115,18 @@ void menu_led();
|
|||
void menu_mixer();
|
||||
#endif
|
||||
|
||||
#if HAS_SERVICE_INTERVALS && ENABLED(PRINTCOUNTER)
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
void menu_service1();
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
void menu_service2();
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
void menu_service3();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void menu_main() {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_WATCH);
|
||||
|
@ -237,6 +249,18 @@ void menu_main() {
|
|||
}
|
||||
#endif // HAS_ENCODER_WHEEL && SDSUPPORT
|
||||
|
||||
#if HAS_SERVICE_INTERVALS && ENABLED(PRINTCOUNTER)
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
MENU_ITEM(submenu, SERVICE_NAME_1, menu_service1);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
MENU_ITEM(submenu, SERVICE_NAME_2, menu_service2);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
MENU_ITEM(submenu, SERVICE_NAME_3, menu_service3);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
|
|
82
Marlin/src/lcd/menu/menu_service.cpp
Normal file
82
Marlin/src/lcd/menu/menu_service.cpp
Normal file
|
@ -0,0 +1,82 @@
|
|||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
//
|
||||
// Service Menus
|
||||
//
|
||||
|
||||
#include "../../inc/MarlinConfigPre.h"
|
||||
|
||||
#if HAS_LCD_MENU && HAS_SERVICE_INTERVALS && ENABLED(PRINTCOUNTER)
|
||||
|
||||
#include "menu.h"
|
||||
#include "../../module/printcounter.h"
|
||||
|
||||
inline void _lcd_reset_service(const int index) {
|
||||
print_job_timer.resetServiceInterval(index);
|
||||
BUZZ(200, 404);
|
||||
ui.reset_status();
|
||||
ui.return_to_status();
|
||||
}
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
void menu_action_reset_service1() { _lcd_reset_service(1); }
|
||||
#endif
|
||||
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
void menu_action_reset_service2() { _lcd_reset_service(2); }
|
||||
#endif
|
||||
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
void menu_action_reset_service3() { _lcd_reset_service(3); }
|
||||
#endif
|
||||
|
||||
inline void _menu_service(const int index) {
|
||||
START_MENU();
|
||||
MENU_BACK(MSG_MAIN);
|
||||
switch (index) {
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
case 1: MENU_ITEM(function, MSG_SERVICE_RESET, menu_action_reset_service1); break;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
case 2: MENU_ITEM(function, MSG_SERVICE_RESET, menu_action_reset_service2); break;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
case 3: MENU_ITEM(function, MSG_SERVICE_RESET, menu_action_reset_service3); break;
|
||||
#endif
|
||||
}
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
void menu_service1() { _menu_service(1); }
|
||||
#endif
|
||||
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
void menu_service2() { _menu_service(2); }
|
||||
#endif
|
||||
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
void menu_service3() { _menu_service(3); }
|
||||
#endif
|
||||
|
||||
#endif // HAS_LCD_MENU && HAS_SERVICE_INTERVALS && PRINTCOUNTER
|
|
@ -1286,6 +1286,15 @@ void MarlinUI::update() {
|
|||
static const char paused[] PROGMEM = MSG_PRINT_PAUSED;
|
||||
static const char printing[] PROGMEM = MSG_PRINTING;
|
||||
static const char welcome[] PROGMEM = WELCOME_MSG;
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
static const char service1[] PROGMEM = { "> " SERVICE_NAME_1 "!" };
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
static const char service2[] PROGMEM = { "> " SERVICE_NAME_2 "!" };
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
static const char service3[] PROGMEM = { "> " SERVICE_NAME_3 "!" };
|
||||
#endif
|
||||
PGM_P msg;
|
||||
if (!IS_SD_PRINTING() && print_job_timer.isPaused())
|
||||
msg = paused;
|
||||
|
@ -1295,6 +1304,17 @@ void MarlinUI::update() {
|
|||
#endif
|
||||
else if (print_job_timer.isRunning())
|
||||
msg = printing;
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
else if (print_job_timer.needsService(1)) msg = service1;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
else if (print_job_timer.needsService(2)) msg = service2;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
else if (print_job_timer.needsService(3)) msg = service3;
|
||||
#endif
|
||||
|
||||
else
|
||||
msg = welcome;
|
||||
|
||||
|
|
|
@ -33,11 +33,34 @@ Stopwatch print_job_timer; // Global Print Job Timer instance
|
|||
#include "../Marlin.h"
|
||||
#include "../HAL/shared/persistent_store_api.h"
|
||||
|
||||
#if HAS_BUZZER && SERVICE_WARNING_BUZZES > 0
|
||||
#include "../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
// Service intervals
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
#define SERVICE_INTERVAL_SEC_1 (3600UL * SERVICE_INTERVAL_1)
|
||||
#else
|
||||
#define SERVICE_INTERVAL_SEC_1 (3600UL * 100)
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
#define SERVICE_INTERVAL_SEC_2 (3600UL * SERVICE_INTERVAL_2)
|
||||
#else
|
||||
#define SERVICE_INTERVAL_SEC_2 (3600UL * 100)
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
#define SERVICE_INTERVAL_SEC_3 (3600UL * SERVICE_INTERVAL_3)
|
||||
#else
|
||||
#define SERVICE_INTERVAL_SEC_3 (3600UL * 100)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
PrintCounter print_job_timer; // Global Print Job Timer instance
|
||||
|
||||
printStatistics PrintCounter::data;
|
||||
|
||||
const PrintCounter::promdress PrintCounter::address = STATS_EEPROM_ADDRESS;
|
||||
const PrintCounter::eeprom_address_t PrintCounter::address = STATS_EEPROM_ADDRESS;
|
||||
|
||||
millis_t PrintCounter::lastDuration;
|
||||
bool PrintCounter::loaded = false;
|
||||
|
@ -69,7 +92,11 @@ void PrintCounter::initStats() {
|
|||
#endif
|
||||
|
||||
loaded = true;
|
||||
data = { 0, 0, 0, 0, 0.0 };
|
||||
data = { 0, 0, 0, 0, 0.0
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
, SERVICE_INTERVAL_SEC_1, SERVICE_INTERVAL_SEC_2, SERVICE_INTERVAL_SEC_3
|
||||
#endif
|
||||
};
|
||||
|
||||
saveStats();
|
||||
persistentStore.access_start();
|
||||
|
@ -77,6 +104,18 @@ void PrintCounter::initStats() {
|
|||
persistentStore.access_finish();
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
inline void _print_divider() { SERIAL_ECHO_MSG("============================================="); }
|
||||
inline bool _service_warn(const char * const msg) {
|
||||
_print_divider();
|
||||
SERIAL_ECHO_START();
|
||||
serialprintPGM(msg);
|
||||
SERIAL_ECHOLNPGM("!");
|
||||
_print_divider();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void PrintCounter::loadStats() {
|
||||
#if ENABLED(DEBUG_PRINTCOUNTER)
|
||||
debug(PSTR("loadStats"));
|
||||
|
@ -92,6 +131,22 @@ void PrintCounter::loadStats() {
|
|||
persistentStore.read_data(address + sizeof(uint8_t), (uint8_t*)&data, sizeof(printStatistics));
|
||||
persistentStore.access_finish();
|
||||
loaded = true;
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
bool doBuzz = false;
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
if (data.nextService1 == 0) doBuzz = _service_warn(PSTR(" " SERVICE_NAME_1));
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
if (data.nextService2 == 0) doBuzz = _service_warn(PSTR(" " SERVICE_NAME_2));
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
if (data.nextService3 == 0) doBuzz = _service_warn(PSTR(" " SERVICE_NAME_3));
|
||||
#endif
|
||||
#if HAS_BUZZER && SERVICE_WARNING_BUZZES > 0
|
||||
if (doBuzz) for (int i = 0; i < SERVICE_WARNING_BUZZES; i++) BUZZ(200, 404);
|
||||
#endif
|
||||
#endif // HAS_SERVICE_INTERVALS
|
||||
}
|
||||
|
||||
void PrintCounter::saveStats() {
|
||||
|
@ -108,6 +163,16 @@ void PrintCounter::saveStats() {
|
|||
persistentStore.access_finish();
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
inline void _service_when(char buffer[], const char * const msg, const uint32_t when) {
|
||||
duration_t elapsed = when;
|
||||
elapsed.toString(buffer);
|
||||
SERIAL_ECHOPGM(MSG_STATS);
|
||||
serialprintPGM(msg);
|
||||
SERIAL_ECHOLNPAIR(" in ", buffer);
|
||||
}
|
||||
#endif
|
||||
|
||||
void PrintCounter::showStats() {
|
||||
char buffer[21];
|
||||
|
||||
|
@ -158,6 +223,16 @@ void PrintCounter::showStats() {
|
|||
SERIAL_CHAR('m');
|
||||
|
||||
SERIAL_EOL();
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
_service_when(buffer, PSTR(SERVICE_NAME_1), data.nextService1);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
_service_when(buffer, PSTR(SERVICE_NAME_2), data.nextService2);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
_service_when(buffer, PSTR(SERVICE_NAME_3), data.nextService3);
|
||||
#endif
|
||||
}
|
||||
|
||||
void PrintCounter::tick() {
|
||||
|
@ -170,7 +245,19 @@ void PrintCounter::tick() {
|
|||
#if ENABLED(DEBUG_PRINTCOUNTER)
|
||||
debug(PSTR("tick"));
|
||||
#endif
|
||||
data.printTime += deltaDuration();
|
||||
millis_t delta = deltaDuration();
|
||||
data.printTime += delta;
|
||||
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
data.nextService1 -= MIN(delta, data.nextService1);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
data.nextService2 -= MIN(delta, data.nextService2);
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
data.nextService3 -= MIN(delta, data.nextService3);
|
||||
#endif
|
||||
|
||||
update_next = now + updateInterval * 1000;
|
||||
}
|
||||
|
||||
|
@ -229,6 +316,40 @@ void PrintCounter::reset() {
|
|||
lastDuration = 0;
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
|
||||
void PrintCounter::resetServiceInterval(const int index) {
|
||||
switch (index) {
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
case 1: data.nextService1 = SERVICE_INTERVAL_SEC_1;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
case 2: data.nextService2 = SERVICE_INTERVAL_SEC_2;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
case 3: data.nextService3 = SERVICE_INTERVAL_SEC_3;
|
||||
#endif
|
||||
}
|
||||
saveStats();
|
||||
}
|
||||
|
||||
bool PrintCounter::needsService(const int index) {
|
||||
switch (index) {
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
case 1: return data.nextService1 == 0;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
case 2: return data.nextService2 == 0;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
case 3: return data.nextService3 == 0;
|
||||
#endif
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // HAS_SERVICE_INTERVALS
|
||||
|
||||
#if ENABLED(DEBUG_PRINTCOUNTER)
|
||||
|
||||
void PrintCounter::debug(const char func[]) {
|
||||
|
@ -238,6 +359,7 @@ void PrintCounter::reset() {
|
|||
SERIAL_ECHOLNPGM("()");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif // PRINTCOUNTER
|
||||
|
|
|
@ -42,6 +42,15 @@ struct printStatistics { // 16 bytes
|
|||
uint32_t printTime; // Accumulated printing time
|
||||
uint32_t longestPrint; // Longest successful print job
|
||||
float filamentUsed; // Accumulated filament consumed in mm
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
uint32_t nextService1; // Service intervals (or placeholders)
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_2 > 0
|
||||
uint32_t nextService2;
|
||||
#endif
|
||||
#if SERVICE_INTERVAL_3 > 0
|
||||
uint32_t nextService3;
|
||||
#endif
|
||||
};
|
||||
|
||||
class PrintCounter: public Stopwatch {
|
||||
|
@ -49,9 +58,9 @@ class PrintCounter: public Stopwatch {
|
|||
typedef Stopwatch super;
|
||||
|
||||
#if ENABLED(I2C_EEPROM) || ENABLED(SPI_EEPROM) || defined(CPU_32_BIT)
|
||||
typedef uint32_t promdress;
|
||||
typedef uint32_t eeprom_address_t;
|
||||
#else
|
||||
typedef uint16_t promdress;
|
||||
typedef uint16_t eeprom_address_t;
|
||||
#endif
|
||||
|
||||
static printStatistics data;
|
||||
|
@ -60,7 +69,7 @@ class PrintCounter: public Stopwatch {
|
|||
* @brief EEPROM address
|
||||
* @details Defines the start offset address where the data is stored.
|
||||
*/
|
||||
static const promdress address;
|
||||
static const eeprom_address_t address;
|
||||
|
||||
/**
|
||||
* @brief Interval in seconds between counter updates
|
||||
|
@ -174,6 +183,11 @@ class PrintCounter: public Stopwatch {
|
|||
static bool stop();
|
||||
static void reset();
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
static void resetServiceInterval(const int index);
|
||||
static bool needsService(const int index);
|
||||
#endif
|
||||
|
||||
#if ENABLED(DEBUG_PRINTCOUNTER)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue