mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Don't display service prompt unless needed (#21654)
This commit is contained in:
parent
1570005683
commit
011a344500
@ -319,6 +319,7 @@ void PrintCounter::reset() {
|
||||
}
|
||||
|
||||
bool PrintCounter::needsService(const int index) {
|
||||
if (!loaded) loadStats();
|
||||
switch (index) {
|
||||
#if SERVICE_INTERVAL_1 > 0
|
||||
case 1: return data.nextService1 == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user