ENH: force to use . as decimal point
"std::cout << float number" is unsafe which may use , as decimal point when switch language. Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I8a379117168eab0111dc93987b1d6130a741ade6
This commit is contained in:
parent
4651927869
commit
31f8034422
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ public:
|
|||
{
|
||||
// adds tag for analyzer:
|
||||
std::ostringstream str;
|
||||
str << ";" << GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Height) << m_layer_height << "\n"; // don't rely on GCodeAnalyzer knowing the layer height - it knows nothing at priming
|
||||
str << ";" << GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Height) << std::to_string(m_layer_height) << "\n"; // don't rely on GCodeAnalyzer knowing the layer height - it knows nothing at priming
|
||||
str << ";" << GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Role) << ExtrusionEntity::role_to_string(erWipeTower) << "\n";
|
||||
m_gcode += str.str();
|
||||
change_analyzer_line_width(line_width);
|
||||
|
@ -58,7 +58,7 @@ public:
|
|||
WipeTowerWriter& change_analyzer_line_width(float line_width) {
|
||||
// adds tag for analyzer:
|
||||
std::stringstream str;
|
||||
str << ";" << GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Width) << line_width << "\n";
|
||||
str << ";" << GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Width) << std::to_string(line_width) << "\n";
|
||||
m_gcode += str.str();
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue