From 7c54c4ed2702721c51a9e9816a5a260d43222128 Mon Sep 17 00:00:00 2001
From: Roxy-3D <Roxy-3D@users.noreply.github.com>
Date: Tue, 19 Jun 2018 14:46:30 -0500
Subject: [PATCH] Tiny improvement to M7219

The registers within the Max7219 can get corrupted a number of ways.  This allows the Max7219 to be reset and fully initialized.
And...  it also allows the user to see the initialization pattern.
---
 Marlin/src/gcode/feature/leds/M7219.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/src/gcode/feature/leds/M7219.cpp b/Marlin/src/gcode/feature/leds/M7219.cpp
index 65079346c8..36f9f7c7ca 100644
--- a/Marlin/src/gcode/feature/leds/M7219.cpp
+++ b/Marlin/src/gcode/feature/leds/M7219.cpp
@@ -39,7 +39,7 @@
  */
 void GcodeSuite::M7219() {
   if (parser.seen('I'))
-    for (uint8_t r = 0; r < 8; r++) Max7219_Set_Row(r, 0);
+    Max7219_init();
   else if (parser.seenval('R')) {
     const uint8_t r = parser.value_int();
     Max7219_Set_Row(r, parser.byteval('V'));
-- 
GitLab