Skip to content

Commit

Permalink
#2922 - Fan speed for gcode visualization modified as proposed by ron…
Browse files Browse the repository at this point in the history
…gith
  • Loading branch information
enricoturri1966 committed Mar 13, 2020
1 parent 45e0079 commit 3fd6c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/Analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ void GCodeAnalyzer::_processM106(const GCodeReader::GCodeLine& line)
// The absence of P means the print cooling fan, so ignore anything else.
float new_fan_speed;
if (line.has_value('S', new_fan_speed))
_set_fan_speed((100.0f / 256.0f) * new_fan_speed);
_set_fan_speed((100.0f / 255.0f) * new_fan_speed);
else
_set_fan_speed(100.0f);
}
Expand Down

0 comments on commit 3fd6c8a

Please sign in to comment.