fixed statistics for MMU_FAIL

This commit is contained in:
PavelSindler 2018-12-13 01:09:21 +01:00
parent df71398066
commit 9c4f086add
1 changed files with 2 additions and 2 deletions

View File

@ -459,9 +459,9 @@ void manage_response(bool move_axes, bool turn_off_nozzle, uint8_t move)
{
response = mmu_get_response(move); //wait for "ok" from mmu
if (!response) { //no "ok" was received in reserved time frame, user will fix the issue on mmu unit
eeprom_update_byte((uint8_t*)EEPROM_MMU_FAIL, eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) + 1);
eeprom_update_word((uint16_t*)EEPROM_MMU_FAIL_TOT, eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) + 1);
if (!mmu_print_saved) { //first occurence, we are saving current position, park print head in certain position and disable nozzle heater
eeprom_update_byte((uint8_t*)EEPROM_MMU_FAIL, eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) + 1);
eeprom_update_word((uint16_t*)EEPROM_MMU_FAIL_TOT, eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) + 1);
if (lcd_update_enabled) {
lcd_update_was_enabled = true;
lcd_update_enable(false);