autotemp_factor is not value_celsius_diff

See https://github.com/MarlinFirmware/Marlin/issues/9852#issuecomment-369861822
This commit is contained in:
Scott Lahteine 2018-03-03 23:29:35 -06:00
parent bdfeb54a9d
commit 5ad60d89a8

View File

@ -1680,8 +1680,7 @@ void Planner::refresh_positioning() {
#if ENABLED(AUTOTEMP) #if ENABLED(AUTOTEMP)
void Planner::autotemp_M104_M109() { void Planner::autotemp_M104_M109() {
autotemp_enabled = parser.seen('F'); if ((autotemp_enabled = parser.seen('F'))) autotemp_factor = parser.value_float();
if (autotemp_enabled) autotemp_factor = parser.value_celsius_diff();
if (parser.seen('S')) autotemp_min = parser.value_celsius(); if (parser.seen('S')) autotemp_min = parser.value_celsius();
if (parser.seen('B')) autotemp_max = parser.value_celsius(); if (parser.seen('B')) autotemp_max = parser.value_celsius();
} }