Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tools/Filament.cpp')
-rw-r--r--src/Tools/Filament.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Tools/Filament.cpp b/src/Tools/Filament.cpp
index e6321847..2ce3e7b9 100644
--- a/src/Tools/Filament.cpp
+++ b/src/Tools/Filament.cpp
@@ -42,6 +42,14 @@ void Filament::Unload() noexcept
void Filament::LoadAssignment() noexcept
{
#if HAS_MASS_STORAGE
+# if HAS_LINUX_INTERFACE
+ if (reprap.UsingLinuxInterface())
+ {
+ // Filament configuration is saved on the SBC
+ return;
+ }
+# endif
+
FileStore *file = reprap.GetPlatform().OpenSysFile(FilamentAssignmentFile, OpenMode::read);
if (file == nullptr)
{
@@ -81,6 +89,14 @@ void Filament::LoadAssignment() noexcept
/*static*/ void Filament::SaveAssignments() noexcept
{
#if HAS_MASS_STORAGE
+# if HAS_LINUX_INTERFACE
+ if (reprap.UsingLinuxInterface())
+ {
+ // Filament configuration is saved on the SBC
+ return;
+ }
+# endif
+
FileStore * const file = reprap.GetPlatform().OpenSysFile(FilamentAssignmentFile, OpenMode::write);
if (file == nullptr)
{