From dea19d89d88985b6db0e589140b748f7374498d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Fri, 1 Nov 2024 20:09:10 +0100 Subject: [PATCH] Fix --- src/octoprint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint.h b/src/octoprint.h index b3bea57..da1c12b 100644 --- a/src/octoprint.h +++ b/src/octoprint.h @@ -60,14 +60,14 @@ bool fetchPrintingStatus(Adafruit_SSD1306& display) { display.println(api.printerStats.printerTool0TempActual); display.print("Bed: "); display.println(api.printerStats.printerBedTempActual); - + //Print time left (if printing) in human readable time HH:MM:SS int runHours= api.printJob.progressPrintTimeLeft/3600; int secsRemaining=api.printJob.progressPrintTimeLeft%3600; int runMinutes=secsRemaining/60; int runSeconds=secsRemaining%60; char buf[31]; - sprintf(buf,"Print time left:\t%02d:%02d:%02d",runHours,runMinutes,runSeconds); + sprintf(buf,"%02d:%02d:%02d",runHours,runMinutes,runSeconds); display.println(buf); const float temp_percent = floor(api.printJob.progressCompletion*100)/100;