Browse Source

When STATUS_EXPIRE_SECONDS is 0, hide the position. (#10081)

Some users may prefer to hide the position updates on the `LIGHTWEIGHT_UI` altogether. This leads to an even less cluttered display (it also saves on SPI traffic and one byte of RAM).
Marcio Teixeira 7 years ago
parent
commit
c24dbcbfe1
46 changed files with 184 additions and 33 deletions
  1. 3
    0
      Marlin/Configuration_adv.h
  2. 3
    0
      Marlin/src/config/default/Configuration_adv.h
  3. 3
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 3
    0
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  5. 3
    0
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  6. 3
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  7. 3
    0
      Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h
  8. 3
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  9. 3
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  10. 3
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  11. 3
    0
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  12. 3
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  13. 3
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  14. 3
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  15. 3
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  16. 3
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  17. 3
    0
      Marlin/src/config/examples/Felix/Configuration_adv.h
  18. 3
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  19. 3
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  20. 3
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  21. 3
    0
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  22. 3
    0
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  23. 3
    0
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  24. 3
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  25. 3
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  26. 3
    0
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  27. 3
    0
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  28. 3
    0
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  29. 3
    0
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  30. 3
    0
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  31. 3
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  32. 3
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  33. 3
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  34. 3
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  35. 3
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  36. 3
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  37. 3
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  38. 3
    0
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  39. 3
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  40. 3
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  41. 3
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  42. 3
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  43. 3
    0
      Marlin/src/config/examples/makibox/Configuration_adv.h
  44. 3
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  45. 3
    0
      Marlin/src/config/examples/wt150/Configuration_adv.h
  46. 49
    33
      Marlin/src/lcd/dogm/status_screen_lite_ST7920.h

+ 3
- 0
Marlin/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/default/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

673
      * Since LIGHTWEIGHT_UI has limited space, the position and status
673
      * Since LIGHTWEIGHT_UI has limited space, the position and status
674
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
674
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
675
      * length of time to display the status message before clearing.
675
      * length of time to display the status message before clearing.
676
+     *
677
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
678
+     * This will prevent position updates from being displayed.
676
      */
679
      */
677
     //#define LIGHTWEIGHT_UI
680
     //#define LIGHTWEIGHT_UI
678
     #if ENABLED(LIGHTWEIGHT_UI)
681
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/TheBorg/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

678
      * Since LIGHTWEIGHT_UI has limited space, the position and status
678
      * Since LIGHTWEIGHT_UI has limited space, the position and status
679
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
679
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
680
      * length of time to display the status message before clearing.
680
      * length of time to display the status message before clearing.
681
+     *
682
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
683
+     * This will prevent position updates from being displayed.
681
      */
684
      */
682
     //#define LIGHTWEIGHT_UI
685
     //#define LIGHTWEIGHT_UI
683
     #if ENABLED(LIGHTWEIGHT_UI)
686
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

672
      * Since LIGHTWEIGHT_UI has limited space, the position and status
672
      * Since LIGHTWEIGHT_UI has limited space, the position and status
673
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
673
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
674
      * length of time to display the status message before clearing.
674
      * length of time to display the status message before clearing.
675
+     *
676
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
677
+     * This will prevent position updates from being displayed.
675
      */
678
      */
676
     //#define LIGHTWEIGHT_UI
679
     //#define LIGHTWEIGHT_UI
677
     #if ENABLED(LIGHTWEIGHT_UI)
680
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * Since LIGHTWEIGHT_UI has limited space, the position and status
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
669
      * length of time to display the status message before clearing.
669
      * length of time to display the status message before clearing.
670
+     *
671
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
672
+     * This will prevent position updates from being displayed.
670
      */
673
      */
671
     //#define LIGHTWEIGHT_UI
674
     //#define LIGHTWEIGHT_UI
672
     #if ENABLED(LIGHTWEIGHT_UI)
675
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
665
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
666
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * length of time to display the status message before clearing.
667
      * length of time to display the status message before clearing.
668
+     *
669
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
670
+     * This will prevent position updates from being displayed.
668
      */
671
      */
669
     //#define LIGHTWEIGHT_UI
672
     //#define LIGHTWEIGHT_UI
670
     #if ENABLED(LIGHTWEIGHT_UI)
673
     #if ENABLED(LIGHTWEIGHT_UI)

+ 3
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h View File

666
      * Since LIGHTWEIGHT_UI has limited space, the position and status
666
      * Since LIGHTWEIGHT_UI has limited space, the position and status
667
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
667
      * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
668
      * length of time to display the status message before clearing.
668
      * length of time to display the status message before clearing.
669
+     *
670
+     * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
671
+     * This will prevent position updates from being displayed.
669
      */
672
      */
670
     //#define LIGHTWEIGHT_UI
673
     //#define LIGHTWEIGHT_UI
671
     #if ENABLED(LIGHTWEIGHT_UI)
674
     #if ENABLED(LIGHTWEIGHT_UI)

+ 49
- 33
Marlin/src/lcd/dogm/status_screen_lite_ST7920.h View File

622
 
622
 
623
     // Trim whitespace at the end of the str, as for some reason
623
     // Trim whitespace at the end of the str, as for some reason
624
     // messages like "Card Inserted" are padded with many spaces
624
     // messages like "Card Inserted" are padded with many spaces
625
-    while (str_len > 0 && str[str_len - 1] == ' ') str_len--;
625
+    while (str_len && str[str_len - 1] == ' ') str_len--;
626
 
626
 
627
     if (str_len <= lcd_len) {
627
     if (str_len <= lcd_len) {
628
       // It all fits on the LCD without scrolling
628
       // It all fits on the LCD without scrolling
765
   return true;
765
   return true;
766
 }
766
 }
767
 
767
 
768
+#ifndef STATUS_EXPIRE_SECONDS
769
+  #define STATUS_EXPIRE_SECONDS 20
770
+#endif
771
+
768
 void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) {
772
 void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) {
769
-  static uint8_t countdown = 0;
773
+
774
+  #if STATUS_EXPIRE_SECONDS
775
+    static uint8_t countdown = 0;
776
+  #endif
770
 
777
 
771
   /**
778
   /**
772
    * There is only enough room in the display for either the
779
    * There is only enough room in the display for either the
779
    *    countdown > 1    -- Show status
786
    *    countdown > 1    -- Show status
780
    *    countdown = 1    -- Show status, until movement
787
    *    countdown = 1    -- Show status, until movement
781
    *    countdown = 0    -- Show position
788
    *    countdown = 0    -- Show position
789
+   *
790
+   * If STATUS_EXPIRE_SECONDS is zero, the position display
791
+   * will be disabled and only the status will be shown.
782
    */
792
    */
783
   if (forceUpdate || status_changed()) {
793
   if (forceUpdate || status_changed()) {
784
     #if ENABLED(STATUS_MESSAGE_SCROLLING)
794
     #if ENABLED(STATUS_MESSAGE_SCROLLING)
785
       status_scroll_pos = 0;
795
       status_scroll_pos = 0;
786
     #endif
796
     #endif
787
-    #ifndef STATUS_EXPIRE_SECONDS
788
-      #define STATUS_EXPIRE_SECONDS 20
797
+    #if STATUS_EXPIRE_SECONDS
798
+      countdown = lcd_status_message[0] ? STATUS_EXPIRE_SECONDS : 0;
789
     #endif
799
     #endif
790
-    countdown = lcd_strlen(lcd_status_message) ? STATUS_EXPIRE_SECONDS : 0;
791
     draw_status_message(lcd_status_message);
800
     draw_status_message(lcd_status_message);
792
     blink_changed(); // Clear changed flag
801
     blink_changed(); // Clear changed flag
793
   }
802
   }
794
-  else if (countdown > 1 && blink_changed()) {
795
-    countdown--;
803
+  #if !STATUS_EXPIRE_SECONDS
796
     #if ENABLED(STATUS_MESSAGE_SCROLLING)
804
     #if ENABLED(STATUS_MESSAGE_SCROLLING)
797
-      draw_status_message(lcd_status_message);
805
+      else
806
+        draw_status_message(lcd_status_message);
798
     #endif
807
     #endif
799
-  }
800
-  else if (countdown > 0 && blink_changed()) {
801
-    if (position_changed()) {
808
+  #else
809
+    else if (countdown > 1 && blink_changed()) {
802
       countdown--;
810
       countdown--;
803
-      forceUpdate = true;
811
+      #if ENABLED(STATUS_MESSAGE_SCROLLING)
812
+        draw_status_message(lcd_status_message);
813
+      #endif
804
     }
814
     }
805
-    #if ENABLED(STATUS_MESSAGE_SCROLLING)
806
-      draw_status_message(lcd_status_message);
807
-    #endif
808
-  }
809
-  if (countdown == 0 && (forceUpdate || position_changed() ||
810
-    #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
811
-      blink_changed()
812
-    #endif
813
-  )) {
814
-    draw_position(
815
-      current_position[X_AXIS],
816
-      current_position[Y_AXIS],
817
-      current_position[Z_AXIS],
818
-      #if ENABLED(DISABLE_REDUCED_ACCURACY_WARNING)
819
-        true
820
-      #else
821
-        axis_known_position[X_AXIS] &&
822
-        axis_known_position[Y_AXIS] &&
823
-        axis_known_position[Z_AXIS]
815
+    else if (countdown > 0 && blink_changed()) {
816
+      if (position_changed()) {
817
+        countdown--;
818
+        forceUpdate = true;
819
+      }
820
+      #if ENABLED(STATUS_MESSAGE_SCROLLING)
821
+        draw_status_message(lcd_status_message);
824
       #endif
822
       #endif
825
-    );
826
-  }
823
+    }
824
+    if (countdown == 0 && (forceUpdate || position_changed() ||
825
+      #if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
826
+        blink_changed()
827
+      #endif
828
+    )) {
829
+      draw_position(
830
+        current_position[X_AXIS],
831
+        current_position[Y_AXIS],
832
+        current_position[Z_AXIS],
833
+        #if ENABLED(DISABLE_REDUCED_ACCURACY_WARNING)
834
+          true
835
+        #else
836
+          axis_known_position[X_AXIS] &&
837
+          axis_known_position[Y_AXIS] &&
838
+          axis_known_position[Z_AXIS]
839
+        #endif
840
+      );
841
+    }
842
+  #endif
827
 }
843
 }
828
 
844
 
829
 void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) {
845
 void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) {

Loading…
Cancel
Save