diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-08-09 12:28:06 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-08-09 12:28:06 +0300 |
commit | 53ce4b3eb1acbf0dcecaeeae6d4cc4d18dc7fb2d (patch) | |
tree | f5bf21919cac25d33d0e23268923ca0c9f470455 /src/PrintMonitor | |
parent | f59d7cc1a162a057d9523147d838a36d93ae9c49 (diff) |
More work on embedded file support
Diffstat (limited to 'src/PrintMonitor')
-rw-r--r-- | src/PrintMonitor/PrintMonitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PrintMonitor/PrintMonitor.cpp b/src/PrintMonitor/PrintMonitor.cpp index 07a4dae3..3a28b6ce 100644 --- a/src/PrintMonitor/PrintMonitor.cpp +++ b/src/PrintMonitor/PrintMonitor.cpp @@ -190,7 +190,7 @@ void PrintMonitor::Spin() noexcept else #endif { -#if HAS_MASS_STORAGE +#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES // File information about the file being printed must be available before layer estimations can be made if (!filenameBeingPrinted.IsEmpty() && !printingFileParsed) { @@ -289,7 +289,7 @@ float PrintMonitor::GetPauseDuration() const noexcept // Notifies this class that a file has been set for printing void PrintMonitor::StartingPrint(const char* filename) noexcept { -#if HAS_MASS_STORAGE +#if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES WriteLocker locker(printMonitorLock); MassStorage::CombineName(filenameBeingPrinted.GetRef(), platform.GetGCodeDir(), filename); # if HAS_LINUX_INTERFACE |