Print progress enhancements (#14647)

This commit is contained in:
Marcio Teixeira authored and Scott Lahteine committed 2019-07-17 03:14:44 -05:00
1 parent ebb1a7dc1f
commit 27c487bab7
13 files changed
+31 -17

No files matched your search

+2
View File
@@ -298,6 +298,8 @@ public:
#if ENABLED(LCD_SET_PROGRESS_MANUALLY)
static uint8_t progress_bar_percent;
static void set_progress(const uint8_t progress) { progress_bar_percent = _MIN(progress, 100); }
static void set_progress_done() { set_progress(0x80 + 100); }
static bool progress_reset() { if (progress_bar_percent & 0x80) set_progress(0); }
#endif
static uint8_t get_progress();
#else