1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 23:07:42 +00:00

Make M7219 I more robust and nicer to look at

This commit is contained in:
Roxy-3D 2018-08-13 17:05:13 -05:00 committed by GitHub
parent 263beae3e9
commit 02381d6821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10913,8 +10913,10 @@ inline void gcode_M502() {
* rows or columns depending upon rotation)
*/
inline void gcode_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++)