Browse Source

Add valid() to recovery.info

Scott Lahteine 5 years ago
parent
commit
bda380513a
2 changed files with 4 additions and 2 deletions
  1. 3
    1
      Marlin/src/feature/powerloss.h
  2. 1
    1
      Marlin/src/gcode/feature/powerloss/M1000.cpp

+ 3
- 1
Marlin/src/feature/powerloss.h View File

106
 
106
 
107
   uint8_t valid_foot;
107
   uint8_t valid_foot;
108
 
108
 
109
+  bool valid() { return valid_head && valid_head == valid_foot; }
110
+
109
 } job_recovery_info_t;
111
 } job_recovery_info_t;
110
 
112
 
111
 class PrintJobRecovery {
113
 class PrintJobRecovery {
164
     }
166
     }
165
   #endif
167
   #endif
166
 
168
 
167
-  static inline bool valid() { return info.valid_head && info.valid_head == info.valid_foot; }
169
+  static inline bool valid() { return info.valid(); }
168
 
170
 
169
   #if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
171
   #if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
170
     static void debug(PGM_P const prefix);
172
     static void debug(PGM_P const prefix);

+ 1
- 1
Marlin/src/gcode/feature/powerloss/M1000.cpp View File

41
   #if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
41
   #if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
42
     DEBUG_ECHO_START();
42
     DEBUG_ECHO_START();
43
     serialprintPGM(prefix);
43
     serialprintPGM(prefix);
44
-    DEBUG_ECHOLNPGM(" Power-Loss Recovery Data");
44
+    DEBUG_ECHOLNPGM(" Job Recovery Data");
45
   #else
45
   #else
46
     UNUSED(prefix);
46
     UNUSED(prefix);
47
   #endif
47
   #endif

Loading…
Cancel
Save