failstats - reset "last print" counters
card - new member variable "paused" (bool)
This commit is contained in:
parent
daaac2fb88
commit
4c5618c371
|
|
@ -690,6 +690,13 @@ void crashdet_cancel()
|
||||||
tmc2130_sg_stop_on_crash = true;
|
tmc2130_sg_stop_on_crash = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void failstats_reset_print()
|
||||||
|
{
|
||||||
|
eeprom_update_byte((uint8_t *)EEPROM_CRASH_COUNT_X, 0);
|
||||||
|
eeprom_update_byte((uint8_t *)EEPROM_CRASH_COUNT_Y, 0);
|
||||||
|
eeprom_update_byte((uint8_t *)EEPROM_FERROR_COUNT, 0);
|
||||||
|
eeprom_update_byte((uint8_t *)EEPROM_POWER_COUNT, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef MESH_BED_LEVELING
|
#ifdef MESH_BED_LEVELING
|
||||||
|
|
@ -3993,6 +4000,8 @@ void process_commands()
|
||||||
card.openFile(strchr_pointer + 4,true);
|
card.openFile(strchr_pointer + 4,true);
|
||||||
break;
|
break;
|
||||||
case 24: //M24 - Start SD print
|
case 24: //M24 - Start SD print
|
||||||
|
if (!card.paused)
|
||||||
|
failstats_reset_print();
|
||||||
card.startFileprint();
|
card.startFileprint();
|
||||||
starttime=millis();
|
starttime=millis();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue