parent
d8ec526e67
commit
91a23e27e1
|
|
@ -5884,9 +5884,6 @@ bool lcd_selftest()
|
||||||
if (!MMU2::mmu2.Enabled()) {
|
if (!MMU2::mmu2.Enabled()) {
|
||||||
lcd_detect_IRsensor();
|
lcd_detect_IRsensor();
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
fsensor.setSensorRevision(IR_sensor_analog::SensorRevision::_Old, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
lcd_wait_for_cool_down();
|
lcd_wait_for_cool_down();
|
||||||
|
|
@ -6669,6 +6666,7 @@ static bool lcd_selftest_fsensor(void)
|
||||||
//! @retval false failed
|
//! @retval false failed
|
||||||
static bool selftest_irsensor()
|
static bool selftest_irsensor()
|
||||||
{
|
{
|
||||||
|
set_extrude_min_temp(0);
|
||||||
class TempBackup
|
class TempBackup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -6679,13 +6677,10 @@ static bool selftest_irsensor()
|
||||||
float m_temp;
|
float m_temp;
|
||||||
};
|
};
|
||||||
uint8_t progress;
|
uint8_t progress;
|
||||||
{
|
progress = lcd_selftest_screen(TestScreen::Fsensor, 0, 1, true, 0);
|
||||||
TempBackup tempBackup;
|
MMU2::mmu2.tool_change(0); //Allow cold extrusion only loads to the gears not nozzle
|
||||||
setTargetHotend(ABS_PREHEAT_HOTEND_TEMP);
|
MMU2::mmu2.unload(); //Unload filament
|
||||||
progress = lcd_selftest_screen(TestScreen::Fsensor, 0, 1, true, 0);
|
set_extrude_min_temp(EXTRUDE_MINTEMP);
|
||||||
}
|
|
||||||
progress = lcd_selftest_screen(TestScreen::Fsensor, progress, 1, true, 0);
|
|
||||||
MMU2::mmu2.unload();
|
|
||||||
|
|
||||||
for(uint_least8_t i = 0; i < 200; ++i)
|
for(uint_least8_t i = 0; i < 200; ++i)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue