瀏覽代碼

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

Jim Hyslop 4 年之前
父節點
當前提交
0fe30d14a8
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      Marlin/src/module/printcounter.cpp

+ 1
- 0
Marlin/src/module/printcounter.cpp 查看文件

@@ -319,6 +319,7 @@ void PrintCounter::reset() {
319 319
   }
320 320
 
321 321
   bool PrintCounter::needsService(const int index) {
322
+    if (!loaded) loadStats();
322 323
     switch (index) {
323 324
       #if SERVICE_INTERVAL_1 > 0
324 325
         case 1: return data.nextService1 == 0;

Loading…
取消
儲存