wizard: Disable temperature model during hotend testing
This avoids confusing error messages if the hotend is defective and caught by selftest itself. Rearrange Stopped state checks (saves 2 bytes)
This commit is contained in:
parent
d8ae372309
commit
a8057e0d36
|
|
@ -7025,6 +7025,10 @@ static bool lcd_selfcheck_check_heater(bool _isbed)
|
||||||
|
|
||||||
target_temperature[0] = (_isbed) ? 0 : 200;
|
target_temperature[0] = (_isbed) ? 0 : 200;
|
||||||
target_temperature_bed = (_isbed) ? 100 : 0;
|
target_temperature_bed = (_isbed) ? 100 : 0;
|
||||||
|
#ifdef TEMP_MODEL
|
||||||
|
bool tm_was_enabled = temp_model_enabled();
|
||||||
|
temp_model_set_enabled(false);
|
||||||
|
#endif //TEMP_MODEL
|
||||||
manage_heater();
|
manage_heater();
|
||||||
manage_inactivity(true);
|
manage_inactivity(true);
|
||||||
|
|
||||||
|
|
@ -7061,26 +7065,21 @@ static bool lcd_selfcheck_check_heater(bool _isbed)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool _stepresult = false;
|
bool _stepresult = false;
|
||||||
if (Stopped)
|
if (Stopped || _opposite_result < ((_isbed) ? 30 : 9))
|
||||||
{
|
{
|
||||||
// thermal error occurred while heating the nozzle
|
if (!Stopped && _checked_result >= ((_isbed) ? 9 : 30))
|
||||||
lcd_selftest_error(TestError::Heater, "", "");
|
_stepresult = true;
|
||||||
|
else
|
||||||
|
lcd_selftest_error(TestError::Heater, "", "");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_opposite_result < ((_isbed) ? 30 : 9))
|
lcd_selftest_error(TestError::Bed, "", "");
|
||||||
{
|
|
||||||
if (_checked_result >= ((_isbed) ? 9 : 30))
|
|
||||||
_stepresult = true;
|
|
||||||
else
|
|
||||||
lcd_selftest_error(TestError::Heater, "", "");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
lcd_selftest_error(TestError::Bed, "", "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TEMP_MODEL
|
||||||
|
temp_model_set_enabled(tm_was_enabled);
|
||||||
|
#endif //TEMP_MODEL
|
||||||
manage_heater();
|
manage_heater();
|
||||||
manage_inactivity(true);
|
manage_inactivity(true);
|
||||||
return _stepresult;
|
return _stepresult;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue