mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 21:25:56 +08:00
Fix comment stripping in sender
This commit is contained in:
parent
27dcd60c77
commit
954e2c9bf0
@ -403,7 +403,8 @@ GCodeSender::do_send()
|
||||
}
|
||||
|
||||
// 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);
|
||||
boost::algorithm::trim(line);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user