🎨 Lowercase methods, functions, data members (#25939)
For: TFT, DGUS, MarlinUI, Anycubic, JyersUI, CrealityUI
This commit is contained in:
@@ -787,9 +787,10 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
#define TPOFFSET (LCD_WIDTH - 1)
|
||||
static uint8_t timepos = TPOFFSET - 6;
|
||||
static char buffer[8];
|
||||
static lcd_uint_t pc, pr;
|
||||
|
||||
#if ENABLED(SHOW_PROGRESS_PERCENT)
|
||||
static lcd_uint_t pc = 0, pr = 2;
|
||||
inline void setPercentPos(const lcd_uint_t c, const lcd_uint_t r) { pc = c; pr = r; }
|
||||
void MarlinUI::drawPercent() {
|
||||
const uint8_t progress = ui.get_progress_percent();
|
||||
if (progress) {
|
||||
@@ -800,6 +801,7 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLED(SHOW_REMAINING_TIME)
|
||||
void MarlinUI::drawRemain() {
|
||||
if (printJobOngoing()) {
|
||||
@@ -811,6 +813,7 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLED(SHOW_INTERACTION_TIME)
|
||||
void MarlinUI::drawInter() {
|
||||
const duration_t interactt = ui.interaction_time;
|
||||
@@ -822,6 +825,7 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if ENABLED(SHOW_ELAPSED_TIME)
|
||||
void MarlinUI::drawElapsed() {
|
||||
if (printJobOngoing()) {
|
||||
@@ -947,7 +951,7 @@ void MarlinUI::draw_status_screen() {
|
||||
#if LCD_WIDTH < 20
|
||||
|
||||
#if HAS_PRINT_PROGRESS
|
||||
pc = 0; pr = 2;
|
||||
TERN_(SHOW_PROGRESS_PERCENT, setPercentPos(0, 2));
|
||||
rotate_progress();
|
||||
#endif
|
||||
|
||||
@@ -1039,7 +1043,7 @@ void MarlinUI::draw_status_screen() {
|
||||
#if LCD_WIDTH >= 20
|
||||
|
||||
#if HAS_PRINT_PROGRESS
|
||||
pc = 6; pr = 2;
|
||||
TERN_(SHOW_PROGRESS_PERCENT, setPercentPos(6, 2));
|
||||
rotate_progress();
|
||||
#else
|
||||
char c;
|
||||
@@ -1122,7 +1126,7 @@ void MarlinUI::draw_status_screen() {
|
||||
_draw_bed_status(blink);
|
||||
#elif HAS_PRINT_PROGRESS
|
||||
#define DREW_PRINT_PROGRESS 1
|
||||
pc = 0; pr = 2;
|
||||
TERN_(SHOW_PROGRESS_PERCENT, setPercentPos(0, 2));
|
||||
rotate_progress();
|
||||
#endif
|
||||
|
||||
@@ -1130,7 +1134,7 @@ void MarlinUI::draw_status_screen() {
|
||||
// All progress strings
|
||||
//
|
||||
#if HAS_PRINT_PROGRESS && !DREW_PRINT_PROGRESS
|
||||
pc = LCD_WIDTH - 9; pr = 2;
|
||||
TERN_(SHOW_PROGRESS_PERCENT, setPercentPos(LCD_WIDTH - 9, 2));
|
||||
rotate_progress();
|
||||
#endif
|
||||
#endif // LCD_INFO_SCREEN_STYLE 1
|
||||
|
||||
Reference in New Issue
Block a user