mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 22:32:55 +02:00
Fix comment stripping in sender
This commit is contained in:
1 parent
27dcd60c77
commit
954e2c9bf0
1 file changed
+3
-2
@@ -403,8 +403,9 @@ GCodeSender::do_send()
|
||||
}
|
||||
|
||||
// strip comments
|
||||
if (size_t comment_pos = line.find_first_of(';') != std::string::npos)
|
||||
line.erase(comment_pos, 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);
|
||||
|
||||
// if line is not empty, send it
|
||||
|
||||
Reference in new issue
Block a user