Remaining Time for FTDI EVE, bp for ExtUI (#20549)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
LinFor
2020-12-24 01:37:17 +03:00
committed by GitHub
parent 59de35e749
commit 2d88a2cfb7
7 changed files with 156 additions and 85 deletions

View File

@@ -245,7 +245,7 @@ namespace ExtUI {
}
#ifdef TOUCH_UI_LCD_TEMP_SCALING
#define GET_TEMP_ADJUSTMENT(A) float(A)/TOUCH_UI_LCD_TEMP_SCALING
#define GET_TEMP_ADJUSTMENT(A) (float(A) / (TOUCH_UI_LCD_TEMP_SCALING))
#else
#define GET_TEMP_ADJUSTMENT(A) A
#endif
@@ -807,10 +807,6 @@ namespace ExtUI {
#endif
#endif
uint8_t getProgress_percent() {
return ui.get_progress_percent();
}
uint32_t getProgress_seconds_elapsed() {
const duration_t elapsed = print_job_timer.duration();
return elapsed.value;