Set unknown IR sensor after factory reset as 0.3 or older

This commit is contained in:
3d-gussner 2020-05-12 20:15:02 +02:00
parent 43c22e7fe3
commit 127a1790bc

View File

@ -7572,12 +7572,10 @@ bool lcd_selftest()
int _progress = 0; int _progress = 0;
bool _result = true; bool _result = true;
bool _swapped_fan = false; bool _swapped_fan = false;
//#ifdef IR_SENSOR_ANALOG #ifdef IR_SENSOR_ANALOG
#if (0) //! Check if IR sensor is in unknown state, set it temporarily to 0.3 or older
bool bAction; //! @todo This has to be improved
bAction=lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Is the filament unloaded?"),false,true); if( oFsensorPCB == ClFsensorPCB::_Undef) eeprom_update_byte((uint8_t*)EEPROM_FSENSOR_PCB,0);
if(!bAction)
return(false);
#endif //IR_SENSOR_ANALOG #endif //IR_SENSOR_ANALOG
lcd_wait_for_cool_down(); lcd_wait_for_cool_down();
lcd_clear(); lcd_clear();