From 9c4f086addd21f64c933641ca3b3b9c686828ef3 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Thu, 13 Dec 2018 01:09:21 +0100 Subject: [PATCH] fixed statistics for MMU_FAIL --- Firmware/mmu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp index 0faf3fa8c..914164856 100644 --- a/Firmware/mmu.cpp +++ b/Firmware/mmu.cpp @@ -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);