fix bug: The calculation for the material required for the wipe tower… - #320
Merged
fire2wind merged 1 commit intoMay 14, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
软件在统计各个项的数据时,使用写在gcode代码中的标识(Tag)进行区分,在 GCodeProcessor::process_tags 函数中。对于擦除塔,只有在遇到了ETags::Wipe_Tower_End后才会统计。
在WipeTower2.cpp中,擦除塔的路径主要在两个部分,一个是WipeTower2::tool_change函数中,另一个在WipeTower2::finish_layer函数中。
在WipeTower2::finish_layer函数中,并没有写入Wipe_Tower_Start和Wipe_Tower_End标记,导致此部分的擦除塔路径未被记录,最终导致擦除塔用料计算错误。