From 5682e0c643a2e1a79e98bfc87ee0ea0beb7ae798 Mon Sep 17 00:00:00 2001 From: garethky Date: Wed, 17 Feb 2021 19:43:15 -0800 Subject: [PATCH] Allow Filaments to be loaded into multiple tools This allows a single Filament to be "loaded" into multiple tools. This allows a user to print "PETG" on multiple tools at the same time without having to create multiple copies of the "PETG" filament config to do so. --- src/GCodes/GCodes.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp index 209fee407b..6d46d27d38 100644 --- a/src/GCodes/GCodes.cpp +++ b/src/GCodes/GCodes.cpp @@ -3857,12 +3857,6 @@ GCodeResult GCodes::LoadFilament(GCodeBuffer& gb, const StringRef& reply) return GCodeResult::error; } - if (Filament::IsInUse(filamentName.c_str())) - { - reply.copy("One filament type can be only assigned to a single tool"); - return GCodeResult::error; - } - SafeStrncpy(filamentToLoad, filamentName.c_str(), ARRAY_SIZE(filamentToLoad)); gb.SetState(GCodeState::loadingFilament);