mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Fix comment stripping in sender
This commit is contained in:
parent
27dcd60c77
commit
954e2c9bf0
1 changed files with 3 additions and 2 deletions
|
@ -403,8 +403,9 @@ 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(';');
|
||||||
line.erase(comment_pos, std::string::npos);
|
if (comment_pos != std::string::npos)
|
||||||
|
line.erase(comment_pos, std::string::npos);
|
||||||
boost::algorithm::trim(line);
|
boost::algorithm::trim(line);
|
||||||
|
|
||||||
// if line is not empty, send it
|
// if line is not empty, send it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue