Merge pull request #2451 from wavexx/fix_printstats_reset
Do not clear last print fail stats prematurely
This commit is contained in:
commit
685c8156b6
|
|
@ -5576,10 +5576,15 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
|
||||||
lcd_resume_print();
|
lcd_resume_print();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
failstats_reset_print();
|
if (!card.get_sdpos())
|
||||||
|
{
|
||||||
|
// A new print has started from scratch, reset stats
|
||||||
|
failstats_reset_print();
|
||||||
#ifndef LA_NOCOMPAT
|
#ifndef LA_NOCOMPAT
|
||||||
la10c_reset();
|
la10c_reset();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
card.startFileprint();
|
card.startFileprint();
|
||||||
starttime=_millis();
|
starttime=_millis();
|
||||||
}
|
}
|
||||||
|
|
@ -5689,12 +5694,19 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
|
||||||
if(code_seen('S'))
|
if(code_seen('S'))
|
||||||
if(strchr_pointer<namestartpos) //only if "S" is occuring _before_ the filename
|
if(strchr_pointer<namestartpos) //only if "S" is occuring _before_ the filename
|
||||||
card.setIndex(code_value_long());
|
card.setIndex(code_value_long());
|
||||||
#ifndef LA_NOCOMPAT
|
|
||||||
la10c_reset();
|
|
||||||
#endif
|
|
||||||
card.startFileprint();
|
card.startFileprint();
|
||||||
if(!call_procedure)
|
if(!call_procedure)
|
||||||
starttime=_millis(); //procedure calls count as normal print time.
|
{
|
||||||
|
if(!card.get_sdpos())
|
||||||
|
{
|
||||||
|
// A new print has started from scratch, reset stats
|
||||||
|
failstats_reset_print();
|
||||||
|
#ifndef LA_NOCOMPAT
|
||||||
|
la10c_reset();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
starttime=_millis(); // procedure calls count as normal print time.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue