From a408f906593db70b8dbbc0c44e961f43176ec1f1 Mon Sep 17 00:00:00 2001 From: MRprusa3d Date: Sat, 18 May 2019 21:28:59 +0200 Subject: [PATCH] recovery from "Stop()" --- Firmware/cardreader.cpp | 1 + Firmware/cardreader.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index b57d5c0c..a9cea244 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -242,6 +242,7 @@ void CardReader::startFileprint() { sdprinting = true; paused = false; + Stopped = false; #ifdef SDCARD_SORT_ALPHA //flush_presort(); #endif diff --git a/Firmware/cardreader.h b/Firmware/cardreader.h index f287a44f..26981ef0 100644 --- a/Firmware/cardreader.h +++ b/Firmware/cardreader.h @@ -161,6 +161,7 @@ private: void flush_presort(); #endif }; +extern bool Stopped; extern CardReader card; #define IS_SD_PRINTING (card.sdprinting)