From 3fd6c8a2ff9cc016e0c04abe041579f4ff1ce267 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 13 Mar 2020 08:25:48 +0100 Subject: [PATCH] #2922 - Fan speed for gcode visualization modified as proposed by rongith --- src/libslic3r/GCode/Analyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/Analyzer.cpp b/src/libslic3r/GCode/Analyzer.cpp index ec5de71b11a..3805b33f023 100644 --- a/src/libslic3r/GCode/Analyzer.cpp +++ b/src/libslic3r/GCode/Analyzer.cpp @@ -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); }