statistics for stop print changed

This commit is contained in:
PavelSindler 2017-04-04 13:41:20 +02:00
parent 7086764d35
commit d9fc29273e
2 changed files with 2 additions and 2 deletions

View file

@ -545,7 +545,7 @@ void lcd_commands()
enquecommand(cmd1);
isPrintPaused = false;
card.startFileprint();
starttime = pause_time;
//starttime = pause_time;
lcd_commands_step = 0;
lcd_commands_type = 0;
}

View file

@ -792,7 +792,7 @@ static void lcd_implementation_status_screen()
lcd.print(LCD_STR_CLOCK[0]);
if(starttime != 0)
{
uint16_t time = isPrintPaused ? pause_time/60000 : millis()/60000 - starttime/60000; //is print is paused, pause also print time
uint16_t time = (isPrintPaused || (!heating_status))? pause_time/60000 : (millis() + pause_time - start_time)/60000; //is print is paused, pause also print time
lcd.print(itostr2(time/60));
lcd.print(':');
lcd.print(itostr2(time%60));