Browse Source

One loop call to ui.update

Scott Lahteine 5 years ago
parent
commit
8000182bb9
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      Marlin/src/MarlinCore.cpp

+ 2
- 5
Marlin/src/MarlinCore.cpp View File

699
   // Handle SD Card insert / remove
699
   // Handle SD Card insert / remove
700
   TERN_(SDSUPPORT, card.manage_media());
700
   TERN_(SDSUPPORT, card.manage_media());
701
 
701
 
702
-  // Handle UI input / draw events
703
-  TERN(DWIN_CREALITY_LCD, DWIN_Update(), ui.update());
704
-
705
   // Handle USB Flash Drive insert / remove
702
   // Handle USB Flash Drive insert / remove
706
   TERN_(USB_FLASH_DRIVE_SUPPORT, Sd2Card::idle());
703
   TERN_(USB_FLASH_DRIVE_SUPPORT, Sd2Card::idle());
707
 
704
 
714
   // Update the Beeper queue
711
   // Update the Beeper queue
715
   TERN_(USE_BEEPER, buzzer.tick());
712
   TERN_(USE_BEEPER, buzzer.tick());
716
 
713
 
717
-  // Read Buttons and Update the LCD
718
-  ui.update();
714
+  // Handle UI input / draw events
715
+  TERN(DWIN_CREALITY_LCD, DWIN_Update(), ui.update());
719
 
716
 
720
   // Run i2c Position Encoders
717
   // Run i2c Position Encoders
721
   #if ENABLED(I2C_POSITION_ENCODERS)
718
   #if ENABLED(I2C_POSITION_ENCODERS)

Loading…
Cancel
Save