Browse Source

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.
Roxy-3D 7 years ago
parent
commit
7c54c4ed27
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/feature/leds/M7219.cpp

+ 1
- 1
Marlin/src/gcode/feature/leds/M7219.cpp View File

@@ -39,7 +39,7 @@
39 39
  */
40 40
 void GcodeSuite::M7219() {
41 41
   if (parser.seen('I'))
42
-    for (uint8_t r = 0; r < 8; r++) Max7219_Set_Row(r, 0);
42
+    Max7219_init();
43 43
   else if (parser.seenval('R')) {
44 44
     const uint8_t r = parser.value_int();
45 45
     Max7219_Set_Row(r, parser.byteval('V'));

Loading…
Cancel
Save