FIX: remove extra filament change

Jira: none

if the fist print filement as same as the filament be set on start gcode
not insert filment change

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I0114f287fff9be276a90772537d1910df18dec61
(cherry picked from commit 276c797faff1407b2c1606d4bfafe21773901001)
This commit is contained in:
qing.zhang
2024-08-28 12:27:09 +08:00
committed by Noisyfox
parent 0ff33f8f7e
commit 5fda94a53b
3 changed files with 13 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ public:
// return false if this extruder was already selected
bool need_toolchange(unsigned int filament_id) const;
std::string set_extruder(unsigned int filament_id);
void init_extruder(unsigned int filament_id);
// Prefix of the toolchange G-code line, to be used by the CoolingBuffer to separate sections of the G-code
// printed with the same extruder.
std::string toolchange_prefix() const;