Save recovery info on SD pause

This commit is contained in:
Scott Lahteine
2018-11-27 14:40:40 -06:00
parent 439a3e8463
commit cecc238f68
3 changed files with 12 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ typedef struct {
#endif
// Command queue
uint8_t cmd_queue_index_r, commands_in_queue;
uint8_t commands_in_queue, cmd_queue_index_r;
char command_queue[BUFSIZE][MAX_CMD_SIZE];
// SD Filename and position
@@ -104,6 +104,7 @@ class PrintJobRecovery {
#else
false
#endif
, const bool save_queue=true
);
static inline bool valid() { return info.valid_head && info.valid_head == info.valid_foot; }