|
@@ -106,6 +106,8 @@ typedef struct {
|
106
|
106
|
|
107
|
107
|
uint8_t valid_foot;
|
108
|
108
|
|
|
109
|
+ bool valid() { return valid_head && valid_head == valid_foot; }
|
|
110
|
+
|
109
|
111
|
} job_recovery_info_t;
|
110
|
112
|
|
111
|
113
|
class PrintJobRecovery {
|
|
@@ -164,7 +166,7 @@ class PrintJobRecovery {
|
164
|
166
|
}
|
165
|
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
|
171
|
#if ENABLED(DEBUG_POWER_LOSS_RECOVERY)
|
170
|
172
|
static void debug(PGM_P const prefix);
|