Don't display service prompt unless needed (#21654)

This commit is contained in:
Jim Hyslop authored and Scott Lahteine committed 2021-04-24 00:09:51 -05:00
1 parent 46f272b669
commit 0fe30d14a8
1 file changed
+1
+1
View File
@@ -319,6 +319,7 @@ void PrintCounter::reset() {
} }
bool PrintCounter::needsService(const int index) { bool PrintCounter::needsService(const int index) {
if (!loaded) loadStats();
switch (index) { switch (index) {
#if SERVICE_INTERVAL_1 > 0 #if SERVICE_INTERVAL_1 > 0
case 1: return data.nextService1 == 0; case 1: return data.nextService1 == 0;