mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix comment stripping in sender
This commit is contained in:
@@ -403,7 +403,8 @@ GCodeSender::do_send()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// strip comments
|
// strip comments
|
||||||
if (size_t comment_pos = line.find_first_of(';') != std::string::npos)
|
size_t comment_pos = line.find_first_of(';');
|
||||||
|
if (comment_pos != std::string::npos)
|
||||||
line.erase(comment_pos, std::string::npos);
|
line.erase(comment_pos, std::string::npos);
|
||||||
boost::algorithm::trim(line);
|
boost::algorithm::trim(line);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user