Browse Source

Use first_page flag in place of page.page == 0

Scott Lahteine 6 years ago
parent
commit
56d2dcb184
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+ 1
- 4
Marlin/src/lcd/dogm/status_screen_DOGM.cpp View File

@@ -212,9 +212,6 @@ FORCE_INLINE void lcd_implementation_status_message(const bool blink) {
212 212
   #endif
213 213
 }
214 214
 
215
-// The current graphical page being rendered
216
-u8g_page_t &page = ((u8g_pb_t *)((u8g.getU8g())->dev->dev_mem))->p;
217
-
218 215
 void lcd_impl_status_screen_0() {
219 216
 
220 217
   const bool blink = lcd_blink();
@@ -396,7 +393,7 @@ void lcd_impl_status_screen_0() {
396 393
   #endif
397 394
 
398 395
   // At the first page, regenerate the XYZ strings
399
-  if (page.page == 0) {
396
+  if (first_page) {
400 397
     strcpy(xstring, ftostr4sign(LOGICAL_X_POSITION(current_position[X_AXIS])));
401 398
     strcpy(ystring, ftostr4sign(LOGICAL_Y_POSITION(current_position[Y_AXIS])));
402 399
     strcpy(zstring, ftostr52sp(LOGICAL_Z_POSITION(current_position[Z_AXIS])));

Loading…
Cancel
Save