Wipe tower - small refactoring and fix

Collection of data from internal wipe tower gcode generator now uses move semantics.
Part of gcode at the end of priming was erroneously not exported (extruder current reset etc.)
This commit is contained in:
Lukas Matena 2020-09-25 12:27:56 +02:00
parent 11a410b4e7
commit b178d0af38
3 changed files with 34 additions and 55 deletions

View file

@ -84,6 +84,12 @@ public:
}
};
// Construct ToolChangeResult from current state of WipeTower and WipeTowerWriter.
// WipeTowerWriter is moved from !
ToolChangeResult construct_tcr(WipeTowerWriter& writer,
bool priming,
size_t old_tool) const;
// x -- x coordinates of wipe tower in mm ( left bottom corner )
// y -- y coordinates of wipe tower in mm ( left bottom corner )
// width -- width of wipe tower in mm ( default 60 mm - leave as it is )