From 60f13767985da920cf77197a6441f6aaad57a2a8 Mon Sep 17 00:00:00 2001 From: Roxy-3D Date: Mon, 13 Aug 2018 16:59:25 -0500 Subject: [PATCH] Make M7219 I more robust and nice to look at Make M2719 initialize the Max7219 registers and then run the initialization pattern (if one is specified). --- Marlin/src/gcode/feature/leds/M7219.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/gcode/feature/leds/M7219.cpp b/Marlin/src/gcode/feature/leds/M7219.cpp index 62edcecea..521d2dd30 100644 --- a/Marlin/src/gcode/feature/leds/M7219.cpp +++ b/Marlin/src/gcode/feature/leds/M7219.cpp @@ -42,8 +42,10 @@ * rows or columns depending upon rotation) */ void GcodeSuite::M7219() { - if (parser.seen('I')) + if (parser.seen('I')) { Max7219_Clear(); + Max7219_init(); + } if (parser.seen('F')) for (uint8_t x = 0; x < MAX7219_X_LEDS; x++)