mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 23:40:41 +08:00
Scale up to 0-100 not 0-1
This commit is contained in:
parent
bdda20dca8
commit
08d91e978b
@ -163,7 +163,7 @@ std::string
|
||||
GCodeWriter::set_fan(unsigned int speed, bool dont_save)
|
||||
{
|
||||
std::ostringstream gcode;
|
||||
const double baseline_factor = (this->config.fan_percentage ? 1.0 : 255.0);
|
||||
const double baseline_factor = (this->config.fan_percentage ? 100.0 : 255.0);
|
||||
if (this->_last_fan_speed != speed || dont_save) {
|
||||
if (!dont_save) this->_last_fan_speed = speed;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user