Merge pull request #2660 from 3d-gussner/MK3_Fsensor_fix1

Set unknown IR sensor after factory reset as 0.3 or older
This commit is contained in:
DRracer 2020-05-12 20:46:27 +02:00 committed by GitHub
commit 94625306c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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