Skip to content

Commit

Permalink
Don't display service prompt unless needed (#21654)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyslop authored and thinkyhead committed Apr 29, 2021
1 parent 1570005 commit 011a344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Marlin/src/module/printcounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 011a344

Please sign in to comment.