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/Linux/LinuxInterface.cpp')
-rw-r--r--src/Linux/LinuxInterface.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Linux/LinuxInterface.cpp b/src/Linux/LinuxInterface.cpp
index 3b9f73b7..3535b60c 100644
--- a/src/Linux/LinuxInterface.cpp
+++ b/src/Linux/LinuxInterface.cpp
@@ -294,7 +294,14 @@ void LinuxInterface::Spin()
Filament *filament = Filament::GetFilamentByExtruder(extruder);
if (filament != nullptr)
{
- filament->Load(filamentName.c_str());
+ if (filamentName.IsEmpty())
+ {
+ filament->Unload();
+ }
+ else
+ {
+ filament->Load(filamentName.c_str());
+ }
}
break;
}