Scale up to 0-100 not 0-1

This commit is contained in:
Joseph Lenox 2019-07-07 08:28:56 -05:00 committed by Joseph Lenox
parent bdda20dca8
commit 08d91e978b

View File

@ -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;