From 56d2dcb184c8ff5e868418ee0b585ba4abbc3b98 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 3 Nov 2018 06:58:59 -0500 Subject: [PATCH] Use first_page flag in place of page.page == 0 --- Marlin/src/lcd/dogm/status_screen_DOGM.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp index d5462c9164..003db14f33 100644 --- a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp +++ b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp @@ -212,9 +212,6 @@ FORCE_INLINE void lcd_implementation_status_message(const bool blink) { #endif } -// The current graphical page being rendered -u8g_page_t &page = ((u8g_pb_t *)((u8g.getU8g())->dev->dev_mem))->p; - void lcd_impl_status_screen_0() { const bool blink = lcd_blink(); @@ -396,7 +393,7 @@ void lcd_impl_status_screen_0() { #endif // At the first page, regenerate the XYZ strings - if (page.page == 0) { + if (first_page) { strcpy(xstring, ftostr4sign(LOGICAL_X_POSITION(current_position[X_AXIS]))); strcpy(ystring, ftostr4sign(LOGICAL_Y_POSITION(current_position[Y_AXIS]))); strcpy(zstring, ftostr52sp(LOGICAL_Z_POSITION(current_position[Z_AXIS])));