Merge pull request #392 from PavelSindler/fail_stats

filament fails counter fix
This commit is contained in:
XPila 2018-01-12 22:23:18 +01:00 committed by GitHub
commit 78d6088d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,9 @@ void fsensor_update()
else*/ else*/
{ {
fsensor_stop_and_save_print(); fsensor_stop_and_save_print();
uint8_t ferror_count = eeprom_read_byte((uint8_t*)EEPROM_FERROR_COUNT);
ferror_count++;
eeprom_update_byte((uint8_t*)EEPROM_FERROR_COUNT, ferror_count);
enquecommand_front_P((PSTR("M600"))); enquecommand_front_P((PSTR("M600")));
fsensor_M600 = true; fsensor_M600 = true;
fsensor_enabled = false; fsensor_enabled = false;