Make CardReader class static (#12451)
* Make CardReader a static class * Make CardReader flags into bitfields
This commit is contained in:
1 parent
3e9ffaddb6
commit
66580f32c2
15 files changed
+281
-190
No files matched your search
@@ -84,8 +84,8 @@ void PrintJobRecovery::changed() {
|
||||
*/
|
||||
void PrintJobRecovery::check() {
|
||||
if (enabled) {
|
||||
if (!card.cardOK) card.initsd();
|
||||
if (card.cardOK) {
|
||||
if (!card.flag.cardOK) card.initsd();
|
||||
if (card.flag.cardOK) {
|
||||
load();
|
||||
if (!valid()) return purge();
|
||||
enqueue_and_echo_commands_P(PSTR("M1000 S"));
|
||||
|
||||
@@ -68,7 +68,7 @@ typedef struct {
|
||||
char command_queue[BUFSIZE][MAX_CMD_SIZE];
|
||||
|
||||
// SD Filename and position
|
||||
char sd_filename[MAXPATHNAMELENGTH];
|
||||
char sd_filename[MAXPATHNAMELENGTH + 1];
|
||||
uint32_t sdpos;
|
||||
|
||||
// Job elapsed time
|
||||
|
||||
Reference in new issue
Block a user