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
   #endif
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
 void lcd_impl_status_screen_0() {
215
 void lcd_impl_status_screen_0() {
219
 
216
 
220
   const bool blink = lcd_blink();
217
   const bool blink = lcd_blink();
396
   #endif
393
   #endif
397
 
394
 
398
   // At the first page, regenerate the XYZ strings
395
   // At the first page, regenerate the XYZ strings
399
-  if (page.page == 0) {
396
+  if (first_page) {
400
     strcpy(xstring, ftostr4sign(LOGICAL_X_POSITION(current_position[X_AXIS])));
397
     strcpy(xstring, ftostr4sign(LOGICAL_X_POSITION(current_position[X_AXIS])));
401
     strcpy(ystring, ftostr4sign(LOGICAL_Y_POSITION(current_position[Y_AXIS])));
398
     strcpy(ystring, ftostr4sign(LOGICAL_Y_POSITION(current_position[Y_AXIS])));
402
     strcpy(zstring, ftostr52sp(LOGICAL_Z_POSITION(current_position[Z_AXIS])));
399
     strcpy(zstring, ftostr52sp(LOGICAL_Z_POSITION(current_position[Z_AXIS])));

Loading…
Cancel
Save